Friday, April 4, 2014

Clear Open Recent documents on Adobe Photoshop


Open Photoshop
Click menu Edit - Preferences - "File Handling" - Type 0 in "Recent file list contains:"

Convert all HTML entities - PHP

htmlspecialchars() - Convert special characters to HTML entities



(PHP 4 >= 4.3.0, PHP 5)
html_entity_decodeConvert all HTML entities to their applicable characters

html_entity_decode() - Convert all HTML entities to their applicable characters
get_html_translation_table() - Returns the translation table used by htmlspecialchars and htmlentities

urldecode() - Decodes URL-encoded string

Escape sequences PHP



(PHP 4, PHP 5)
addslashesQuote string with slashes

stripcslashes() - Un-quote string quoted with addcslashes
stripslashes() - Un-quotes a quoted string
addcslashes() - Quote string with slashes in a C style
htmlspecialchars() - Convert special characters to HTML entities
quotemeta() - Quote meta characters
get_magic_quotes_gpc() - Gets the current configuration setting of magic_quotes_gpc




Escape sequences

The backslash character has several uses. Firstly, if it is followed by a non-alphanumeric character, it takes away any special meaning that character may have. This use of backslash as an escape character applies both inside and outside character classes.

Thursday, April 3, 2014

PHP Class Function Validate

PHP Class Function Checking


get_class() - Returns the name of the class of an object
function_exists() - Return TRUE if the given function has been defined
method_exists() - Checks if the class method exists

class_exists() - Checks if the class has been defined.

Related topic about PHP checking function:

PHP function Variable Checking / Validate

PHP function Variable Checking / Validate

Is PHP function Variable Checking / Validate

is_array
is_bool
is_callable
is_double
is_float
is_int
is_integer
is_long
is_null
is_numeric
is_object
is_real
is_resource
is_scalar
is_string

PHP function Variable Checking / Validate

is_array() - Finds whether a variable is an array
is_bool() - Finds out whether a variable is a boolean
is_float() - Finds whether the type of a variable is float
is_int() - Find whether the type of a variable is integer
is_null() - Finds whether a variable is NULL
is_numeric() - Finds whether a variable is a number or a numeric string
is_object() - Finds whether a variable is an object
is_resource() - Finds whether a variable is a resource
is_scalar() - Finds whether a variable is a scalar
is_string() - Find whether the type of a variable is string

Variable handling Functions

filter, sanitize, escape, check, fallbacks to feedback and prevent input disaster.

Variable and Type Related Extensions

Variable handling Functions


(PHP 4, PHP 5)
var_dump — Dumps information about a variable


print_r() - Prints human-readable information about a variable

debug_zval_dump() - Dumps a string representation of an internal zend value to output
var_export() - Outputs or returns a parsable string representation of a variable

Variable Validated PHP Functions

(PHP 4, PHP 5)
emptyDetermine whether a variable is empty

isset() - Determine if a variable is set and is not NULL
__isset()
unset() - Unset a given variable
array_key_exists() - Checks if the given key or index exists in the array
count() - Count all elements in an array, or something in an object
strlen() - Get string length

Is PHP function Variable Checking / Validate

is_array
is_bool
is_callable
is_double
is_float
is_int
is_integer
is_long
is_null
is_numeric
is_object
is_real
is_resource
is_scalar
is_string



PHP type comparison tables

(PHP 4, PHP 5)
gettype — Get the type of a variable
(PHP 4, PHP 5)
emptyDetermine whether a variable is empty

http://www.php.net/manual/en/types.comparisons.php


Others

get_class() - Returns the name of the class of an object
function_exists() - Return TRUE if the given function has been defined
method_exists() - Checks if the class method exists
defined()
Similar:
PHP Class Function Validate

PHP function Variable Checking / Validate

php validate exist

php validate exist

function_exists — Return TRUE if the given function has been defined.
(PHP 4, PHP 5)

method_exists() - Checks if the class method exists.
is_callable() - Verify that the contents of a variable can be called as a function.
get_defined_functions() - Returns an array of all defined functions.
class_exists() - Checks if the class has been defined.
extension_loaded() - Find out whether an extension is loaded.
defined - an inbuilt function in PHP which checks whether a constant is exists or not, in other words, defined or not.

Similar topic:

Variable handling Functions

PHP Class Function Validate

PHP function Variable Checking / Validate

php validate exist

Inspiration:
https://geeksforgeeks.org/