0
Php function why can not take name like...
Why php function not take this type(small letters) name. Problem 1 : <?php function writemsg() { echo 'Iam vinay'; } writemsg(); ?> when i use this function the output not come, when i will change function name like writeMsg. it show output. 1) function not allowed name like writemsg()
2 Answers
+ 2
I'm not sure what you mean, but function names in PHP are not case sensitive.
<?php
function writemsg() {
echo 'I am vinay';
}
// although all 3 calls use different capitalization they
// should all still output the echo in the function.
writemsg();
WriteMsg();
writeMsg();
?>
0
Thank you bro