Article Categories
Arts, Entertainment and Music
Autos, Trucks and More
Blogs, RSS and Podcasting
Business and Management
Computers
Diseases, Conditions and Treatments
Education
Family
Finance
Food and Drink
Fun Stuff
Health and Fitness
Hobbies
House and Home
Insurance
Internet
Jobs and Careers
Kids and Teens
Legal
Marketing and Advertising
Online Business, Promotion and Marketing
Other
Parenting
Pets
Product Reviews
Real Estate
Recreation and Sports
Relationships
Religion
Self Help and Motivational
Technology and Gadgets
Travel and Leisure
Web Development
Womens World
Writing and Speaking
Make Money Online

Search

 
Article Title
Author's Name
ArticleBody
Keyword
   

Home >> Internet

Internal (built-in) Functions
By: ahsan

PHP comes standard with many functions and constructs. There are also functions that require specific PHP extensions compiled in otherwise you'll get fatal "undefined function" errors. For example, to use image functions such as imagecreatetruecolor(), you'll need your PHP compiled with GD support. Or, to use mysql_connect() you'll need your PHP compiled in with MySQL support. There are many core functions that are included in every version of PHP like the string and variable functions. A call to phpinfo() or get_loaded_extensions() will show you which extensions are loaded into your PHP. Also note that many extensions are enabled by default and that the PHP manual is split up by extension. See the configuration, installation, and individual extension chapters, for information on how to setup your PHP.

Reading and understanding a function's prototype is explained within the manual section titled how to read a function definition. It's important to realize what a function returns or if a function works directly on a passed in value. For example, str_replace() will return the modified string while usort() works on the actual passed in variable itself. Each manual page also has specific information for each function like information on function parameters, behavior changes, return values for both success and failure, and availability information. Knowing these important (yet often subtle) differences is crucial for writing correct PHP code.
such as passing an array where a string is expected, the return value of the function is undefined. In this case it will likely return NULL but this is just a convention, and cannot be relied upon

Note: If the parameters given to a function are not what it expects, such as passing an array where a string is expected, the return value of the function is undefined. In this case it will likely return NULL but this is just a convention, and cannot be relied upon.
such as passing an array where a string is expected, the return value of the function is undefined. In this case it will likely return NULL but this is just a convention, and cannot be relied upon If the parameters given to a function are not what it expects, such as passing an array where a string is expected, the return value of the function is undefined.
If the parameters given to a function are not what it expects, such as passing an array where a string is expected, the return value of the function is undefined.If the parameters given to a function are not what it expects, such as passing an array where a string is expected, the return value of the function is undefined.If the parameters given to a function are not what it expects, such as passing an array where a string is expected, the return value of the function is undefined.If the parameters given to a function are not what it expects, such as passing an array where a string is expected, the return value of the function is undefined.If the parameters given to a function are not what it expects, such as passing an array where a string is expected, the return value of the function is undefined.If the parameters given to a function are not what it expects, such as passing an array where a string is expected, the return value of the function is undefined.

If the parameters given to a function are not what it expects, such as passing an array where a string is expected, the return value of the function is undefined.

Read More From ahsan

Comment on this article


 
10 Most Recent ArticleFeeder "Internet" Related Articles...

10 Most Popular ArticleFeeder "Internet" Related Articles...

Click Here to Check Out The Amazing New SEO Technology called the Web2Mayhem!

 

<<   Back to the Internet Index