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()

16th Jul 2017, 5:05 PM
Vinay
Vinay - avatar
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(); ?>
16th Jul 2017, 7:07 PM
ChaoticDawg
ChaoticDawg - avatar
0
Thank you bro
17th Jul 2017, 2:58 AM
Vinay
Vinay - avatar