how word trim php

this cod php for trim word: $str = $_POST['mn'] ; // input text html$chars = preg_split('/(<[^>]*[^\/]>)/i', $str, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);print_r($str);

how if in php

if (condition) code to be executed if condition is true; <html> <body> <? $d=date("D"); if ($d=="Fri") echo "Have a nice weekend!";?> </body> </html> 2-for right answer if ($style==3){echo 'border-style:solid;'.

Back to Top

© FREECLUP 2013