a couple of days ago i asked tou guys here for help and you delivered like gods so here i am again with another problem so pls help
Write a script which will do a simple scrambling of a string. The script should have variables for the original string (eg $message) and a number (eg $number) (which should be less than the length of the string). The scrambling should be achieved by reversing the first and last $number characters of $string (in that order). To avoid giving any hints as to the values used the scrambled string should appear all in lowercase.
For example:
String=Babraham Number=2, Scrambed= abbrahma String=Institute Number=3, Scrambled=snititetu
Hint: use the substr() and reverse() functions.
In reply to Scrambling help by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |