<?php
function show1(){
echo "hello,world";
}
function show2(){
return "hello,world";
}
echo "PHP7:".show1();
echo "<hr/>";
echo "PHP7:".show2();
?>
//output
/*
hello,worldPHP7:
------------------------------------------------
PHP7:hello,world
*/
<?php
function test1(){
echo "I want to learn haskell";
}
function test2(){
return "I want to learn NodeJS";
}
ECHO "hello:",test1(); //hello:I want't to learn haskell
echo "<hr />";
echo "hello:",test2(); //hello:I want't to learn NodeJS
?>