//START OPERADORES //RELACIONALES $texto = str_replace("==","=", $texto); //ARITMETICOS $texto = str_replace("/","<u>div</u>", $texto); $texto = str_replace("%","<u>mod</u>", $texto); //END OPERADORES //START CONDICIONALES $texto = str_replace("if(","<u>si</u> ", $texto); $texto = str_replace("){"," <u>llavors</u><br>", $texto); $texto = str_replace("}else{","<br><u>sino</u><br>", $texto); $texto = str_replace("}","<br><u>fisi</u>", $texto); //END CONDICIONALES //START BUCLES //WHILE $texto = str_replace("while("," <u>mentre</u> ", $texto); $texto = str_replace("){"," <u>fer</u><br>", $texto); $texto = str_replace("}","<br><u>fimentre</u> ", $texto); //DO_WHILE $texto = str_replace("do{","<u>fer</u><br>", $texto); $texto = str_replace("}while(","<br><u>mentre</u> ", $texto); $texto = str_replace(");","", $texto); //FOR //END BUCLES
|