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 251 views
1 answer 202 views
202 views asked Jun 28, 2015 by avibootz
1 answer 246 views
1 answer 166 views
1 answer 54 views
1 answer 210 views
210 views asked Jul 8, 2018 by avibootz
...