How to declare and use a simple function in PHP

1 Answer

0 votes
function func()
{
    echo "this is a simple function";
}
  
func();
 
/*
run:

this is a simple function

*/

 



answered Oct 12, 2016 by avibootz

Related questions

2 answers 263 views
1 answer 213 views
213 views asked Jun 28, 2015 by avibootz
1 answer 256 views
1 answer 177 views
1 answer 61 views
1 answer 216 views
216 views asked Jul 8, 2018 by avibootz
...