Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_GET['input'])){
- $input = explode(' ', $_GET['input']);
- $input = implode('', $input);
- for($i=0; $i<strlen($input); $i++){
- if(ord($input[$i])%2===1){
- echo "<font color='blue'>{$input[$i]} </font>";
- }else{
- echo "<font color='red'>{$input[$i]} </font>";
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement