Saturday, January 7th, 2017
Functions are covered within the Zend PHP study guide. Functions are packages of code that serve as instructions to execute an action. Any valid PHP code can reside in a function. You can define a function like the example written below. <?php function foo($arg_1, $arg_2, /* ..., */ $arg_n) { echo "Example function.\n"; return $retval;…
Tuesday, April 26th, 2016
The SimpleXML extension provides a very simple and easily usable toolset to convert XML to an object that can be processed with normal property selectors and array iterators. Basic SimpleXML usage can be used by either loading xml strings by passing the string in to the SimpleXML class or by using the simplexml_load_string() function. We…
Wednesday, April 20th, 2016
File Uploads in PHP allow users to upload both text and binary files. With PHP's authentication and file manipulation functions, you have full control over who is allowed to upload and what is to be done with the file once it has been uploaded. First of all, you'll need to check that your server's file_uploads…