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 308 views
308 views asked Jun 28, 2015 by avibootz
1 answer 333 views
1 answer 267 views
1 answer 149 views
1 answer 296 views
296 views asked Jul 8, 2018 by avibootz
...