Variables are a vital part of the server-side language, PHP. They are unavoidable but very simple to learn. In this short tutorial, I hope to give you a basic insight into using them.
I ran into a lot of problems when i was first
learning PHP. It seemed that every book told
you how to do this, but never how to utilize
what you just learned. So, I will try and make
it a little more simple.
This is a comprehensive article / tutorial on programming in PHP. It covers a variety of key topics including PHP Structure, Scalar Variables and Data, Data collection: Arrays, Operations and Comparisons, PHP Comparison Operators, PHP Logical Operators, Control Statements, The Function of Functions, and Object Orientation.
Arrays are a large collection of key/value pairs can stores multible variables in a single variable. Arrays are an ordered map which each key could be mapped to a value.
This is a solid introduction to using PHP's build-in directory handling functions. It includes code examples used to create an array of filenames based on a directory structure, and filtering out different types of files.
Working with sessions in PHP is very basic. You can pass values to session as key/value pairs. To store and receive data from sessions are very easy to use.