Tag Archives: programming

Deprecated Warning : Assigning the return value of new by reference is deprecated in * on line *

Hey there, Did you get this Warning/Notice? : Deprecated Warning : Assigning the return value of new by reference is deprecated in *  on line * In PHP5 this notation is deprecated That would generate the warning but ‘&’ is not required and can be removed. To see why this was used in PHP4, see  […]

PHP Warning: file_get_contents(): Unable to find the wrapper “https” – did you forget to enable it when you configured PHP?

Hey Folks, Warning: file_get_contents(): Unable to find the wrapper “https” – did you forget to enable it when you configured PHP? Got the above warning? No Problems. You can get rid of this warning by just enabling php_openssl.dll extension in your php.ini [For eg. xammp/php/php.ini] configuration file. [If you’re not seeing php_openssl.dll itself in your […]

Convert a string to an array using str_split PHP function.

Hey Folks, In PHP, You can convert a string to an array using str_split function. Syntax: Example: Return Values: If the optional split_length parameter is specified, the returned array will be broken down into pieces with each being split_length in length, otherwise each piece will be one character in length. FALSE is returned if split_length […]