+ 2

How to replace echo to any func/word you want?

How to replace echo to your own fucntion or word ?

24th Jul 2017, 8:18 AM
Moha La
Moha La - avatar
6 Respostas
+ 5
<?php function myEcho($str) { echo $str; } ?> You mean something like this?
24th Jul 2017, 9:52 AM
Ipang
+ 4
Just rename myEcho into MOHA, then call it like: $myname="Moha La"; MOHA ($myname); That's it,
26th Jul 2017, 10:32 AM
Ipang
26th Jul 2017, 1:26 PM
Ipang
+ 1
Thank 4 u answer, no i meant like this If i want to output "moha"; $myname = "moha"; MOHA $myname; // output moha
26th Jul 2017, 4:49 AM
Moha La
Moha La - avatar
+ 1
Yes but I don't want looks like a fuc with () . Just like this MOHA $myname; Is it a possible?
26th Jul 2017, 10:34 AM
Moha La
Moha La - avatar
+ 1
Thank you that was helpful 👍🏻
27th Jul 2017, 1:43 PM
Moha La
Moha La - avatar