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 367 views
1 answer 305 views
305 views asked Jun 28, 2015 by avibootz
1 answer 332 views
1 answer 262 views
1 answer 147 views
1 answer 291 views
291 views asked Jul 8, 2018 by avibootz
...