Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $input = '12304';
- for($i=0; $i <= strlen($input); $i++){
- $num = (int)$input[$i];
- if($num % 2 == 0)
- echo 'e';
- else
- echo 'd';
- if($num == 0)
- echo 'Z';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement