开发者

php functions and its detail

开发者 https://www.devze.com 2023-02-17 00:57 出处:网络
I am new to php and use Dreamweaver for coding.I have a good gra开发者_Python百科sp on some functions but am looking for a link / resource to get details on others.Looking for a list of all built in m

I am new to php and use Dreamweaver for coding. I have a good gra开发者_Python百科sp on some functions but am looking for a link / resource to get details on others. Looking for a list of all built in methods/functions with definition and working examples.


The PHP manual is exactly what you need ;-)


There, you'll find both :

  • A Language Reference : types, variables, operators, control statements, ...
  • And the Function Reference, in which you'll have a full list of all available functions -- including those provided by extensions (which might or might not be installed on your system)


Also note that php.net accepts URLs with the following pattern :

http://php.net/FUNCTION_NAME

Which provide easy access to each function's documention.

For example, to access the documentation of the strlen() function, you'd use : http://php.net/strlen


Edit after the comment : going to php.net/print_r, you'll find (like for pretty much any other function) -- quoting a few sentences (there are more I didn't copy-paste) :

  • A quick description :
    mixed print_r ( mixed $expression [, bool $return = false ] )
  • The parameters that function expects :
    expression : The expression to be printed
    return : If you would like to capture the output of print_r(), use the return parameter.
  • Its return values :
    When the return parameter is TRUE, this function will return a string. Otherwise, the return value is TRUE.
  • Somes notes, and a changelog (when the behavior / parameters / return values of a function have changes between versions of PHP)
  • A serie of examples.


You can check all function in php manual.

Online http://www.php.net/manual/en/

Offline , you need to download http://www.php.net/download-docs.php

0

精彩评论

暂无评论...
验证码 换一张
取 消