My code is below..
echo $type = str_replace(array('q','h','f'),array('Quarter','Half','Full'),$_POST['type']);
here on the above line $_POST['type'] have These 3 values;
- $_POST type = 'q'
- $_POST type = 'h'
- $_POST type = 'f'
I want to replace
- q with Quarter
- h with Half
- f with Full.
My Problem is when $_POST['type']='h',
The result of above code means value of $type came HalFull.
Why this is happening...
Is there any solution for this...?
Thanks