Although I am not planning to build up my website using PHP, I have to say that this language is quite useful. Because it helps your websites more dynamic and more interactive, which is what every user wishes when navigating a website. No one likes a very dull system without any interaction towards his or her requirements. PHP realizes these wishes coming true!
PHP has plenty of functions. The most frequent used functions are 'print', 'echo', 'printf', etc. Besides, we can code out own functions to fill out some expected purposes within HTML by using PHP. Also, PHP has a very functional syntax - the array, which can handle multidimensional data. There are two kinds of arrays in gerneral: the indexed array and the associated array. '$_REQUEST', '$_GET' and '$_POST' are all associative arrays used very often when store the data input in the forms.
Another powerful function of PHP is it has sessions, which could store the variables, names and their values so that they can be used by other PHP scripts. Cookie is similar to Sessions, but less used in PHP currently. In a multi-page application, we will almost certainly want some data to persist. In this circumstance, Sessions could be the best choice.
没有评论:
发表评论