I would like to know how I can create an activator - or trigger - in PHP but I do not know where to start.
I wanted to make the user type, for example, "born stack". PHP would recognize the first term "NATO" and would result in "Sierra-Tango-Alpha-Charlie-Kilo".
I've researched it and it's called the Trigger, or activator in Portuguese.
My template for creation is this: link
Issue 1:
I got it from here with PHP:
<?php
$busca = strtolower('nato StACKoverFLoW');
$nato = str_replace("nato", "", $busca);
$trans = array("a" => "Alfa ", "b" => "Bravo ", "c" => "Charlie ", "d" => "Delta ", "e" => "Echo ", "f" => "Foxtrot ", "g" => "Golf ", "h" => "Hotel ", "i" => "India ", "j" => "Juliet ", "k" => "Kilo ", "l" => "Lima ", "m" => "Mike ", "n" => "November ", "o" => "Oscar ", "p" => "Papa ", "q" => "Quebec ", "r" => "Romeo ", "s" => "Sierra ", "t" => "Tango ", "u" => "Uniform ", "v" => "Victor ", "w" => "Whiskey ", "x" => "Xray ", "y" => "Yankee ", "z" => "Zulu ", "1" => "One ", "2" => "Two ", "3" => "Three ", "4" => "Four ", "5" => "Five ", "6" => "Six ", "7" => "Seven ", "8" => "Eight ", "9" => "Nine ", "0" => "Zero");
echo strtr($nato, $trans);
?>