List
Assign the values in the array to some variables:
<?php$my_array = Array ("Dog", "Cat", "Horse"); List ($a, $b, $c) = $my _array;echo "I have several animals, a $a, a $b and a $c.";?
fetch_row
DirName
such as the current file is placed under (d:\www\), the file name is test.php
Echo __file__; Get the absolute address of the current file, result: D:\www\test.php
Echo dirname (__file__);//Get the absolute directory where the current file is located, Result: D:\www\
Echo dirname (dirname (__ file__)); Gets the previous level directory name of the current file, resulting: d:\
Ucfirst
Capitalizes the first character of the string.
Syntax: string Ucfirst (String str);
Lcfirst ()-Converts the first character in a string to lowercase
Ucwords ()-Converts the first character of each word in a string to uppercase
Strtoupper ()-Converts a string to uppercase
Strtolower ()-Converts a string to lowercase
PHP Native some common keywords