O'Reilly logo

PHP for Teens by Maneesh Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. Function List

This appendix lists all of the descriptions and declarations of the functions in this book. The declaration is described as follows:

returnType FunctionName(varType variable1, varType variable2,. . .)

All of the functions follow this pattern. If the function returns nothing, the return type is void. If the parameter is optional, brackets are placed around the parameter.

Table A.1. Functions
NameDescriptionCode
basename()Returns the filename component of a filename string.string basename(string $fullString)
copy()Copies the contents of one file to another.bool copy(string $source_filename, string $destination_filename)
define()Takes in a constant name and a constant value and defines the constant in the program.void define(string ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required