![]() Count and print values in nested arrayĮcho $result. The basic syntax of creating a custom function can be give with:Įxample Run this code » $count, 'values' => $items) The following section will show you how easily you can define your own function in PHP. Functions can be reused in other application - Because a function is separated from the rest of the script, it's easy to reuse the same function in other applications just by including the php file containing those functions.Unlike some other language constructs, echo does not have any return value, so it cannot be used in the context of an expression. Its arguments are a list of expressions following the echo keyword, separated by commas, and not delimited by parentheses. ![]() Therefore, fixing errors becomes much easier. echo is not a function but a language construct.
0 Comments
Leave a Reply. |