Advertisement
kristina111

Untitled

Mar 3rd, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php
  2. if (isset($_GET['input'])){
  3.     $input = explode(' ', $_GET['input']);
  4.     $input = implode('', $input);
  5.     for($i=0; $i<strlen($input); $i++){
  6.         if(ord($input[$i])%2===1){
  7.             echo "<font color='blue'>{$input[$i]} </font>";
  8.         }else{
  9.             echo "<font color='red'>{$input[$i]} </font>";
  10.         }
  11.     }
  12. }
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement