国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Custom function

Custom functions

PHP has more than 1,000 built-in functions, so functions make PHP a very powerful language. Most of the time we can meet our needs by using the system's built-in functions, but custom functions encapsulate a set of codes to reuse the code and make the program structure and logic clearer.

How to define PHP functions:
1. Start with the keyword "function"
2. The function name can start with a letter or an underscore: function name()
3. In braces Write the function body in:

function name() { echo 'Eric'; }

Through the above steps, we have defined a simple function when we need it , you can call this function in the code. The calling method is function name + parameters, for example: name();

Continuing Learning
||
<?php function _pr(){ echo "這是個自定義函數(shù)"; } _pr(); ?>
submitReset Code