Environment variables windows Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer. You can say, It is a dynamic “object” that stores a value, which in turn can be referenced by one or more software programs in Windows (OS). Environment variables…
In PHP, the scope resolution operator is also called Paamayim Nekudotayim (Hebrew Language), which means “twice colon” or “double dot twice”. As you might know PHP 3.0 was created by the Zend team, and it was powered by the Zend Engine 0.5.The name “Paamayim Nekudotayim” was introduced in the Israeli-developed Zend Engine 0.5 used…
Function: trim — Strip whitespace (or other characters) from the beginning and end of a string. Syntax: string trim ( string $str [, string $charlist ] ) Arguments: str The string that will be trimmed. charlist Optionally, the stripped characters can also be specified using the charlist parameter. Argument Options: PHP trim…
PHP as usual all languages has a set of rules (known as Operator Precedence) that decide how complicated expressions are processed. $myVar = 2 * 10 – 1; Should $myVar be 19 or 18? If you cannot decide why there are two possibilities, break them up using parentheses like this $myVar =…
If you upgraded your PHP version to PHP 5.3.x, you will get few warnings or deprecated function messages like function ereg() is deprecated in php 5.3.x. You can find the full list of functions that are deprecated by following URL Deprecated features in PHP 5.3.x ereg family functions are deprecated in PHP 5.3.0 or later,as…
PHP 5.3.0 introduces two new error levels named as E_DEPRECATED and E_USER_DEPRECATED. The E_DEPRECATED error level is used to indicate that a function or feature has been deprecated. The E_USER_DEPRECATED level is intended for indicating deprecated features in user code, similarly to the E_USER_ERROR and E_USER_WARNING levels. The following is a list…