+ 2
How to replace echo to any func/word you want?
How to replace echo to your own fucntion or word ?
6 Réponses
+ 5
<?php
function myEcho($str)
{
echo $str;
}
?>
You mean something like this?
+ 4
Just rename myEcho into MOHA, then call it like:
$myname="Moha La";
MOHA ($myname);
That's it,
+ 4
You might wanna look at this:
https://stackoverflow.com/questions/1688711/can-we-alias-a-function-in-php
+ 1
Thank 4 u answer, no i meant like this
If i want to output "moha";
$myname = "moha";
MOHA $myname;
// output moha
+ 1
Yes but I don't want looks like a fuc with () . Just like this MOHA $myname;
Is it a possible?
+ 1
Thank you that was helpful 👍🏻