PHP Noob Question :$ Changing The Letters Typed In.
#1
Posted 20 December 2011 - 03:10 AM
#2
Posted 25 December 2011 - 11:34 PM
Stripes-_-B3llatr1x, on 20 December 2011 - 03:10 AM, said:
Bump!
#3
Posted 25 December 2011 - 11:43 PM
You should be able to create a script with the letter code to change it functions.
But why would you actually want to do that?
#4
Posted 26 December 2011 - 02:17 AM
kensha, on 25 December 2011 - 11:43 PM, said:
You should be able to create a script with the letter code to change it functions.
But why would you actually want to do that?
Personal Reasons. So Can You Help? Or Is That All You're Going To Do? I Know This Can Be Done In PHP Too, Which Is What I'm Going For...
This post has been edited by Stripes-_-B3llatr1x: 26 December 2011 - 02:18 AM
#5
Posted 26 December 2011 - 09:00 PM
Stripes-_-B3llatr1x, on 26 December 2011 - 02:17 AM, said:
That sounds abit rude..
Anyway, you could use the PHP function str_replace().
Something like..
<?php
$string = "I love Samus.";
echo str_replace("love","<3",$string);
?>
Should change "I love Samus" to "I <3 Samus".
This post has been edited by Samus: 26 December 2011 - 09:01 PM
#6
Posted 27 December 2011 - 08:46 PM
Stripes-_-B3llatr1x, on 26 December 2011 - 02:17 AM, said:
Really rude. I definately won't be replying.
Do people actually expect to get help by being like this? :/
#7
Posted 27 December 2011 - 08:47 PM
Samus, on 26 December 2011 - 09:00 PM, said:
Anyway, you could use the PHP function str_replace().
Something like..
<?php
$string = "I love Samus.";
echo str_replace("love","<3",$string);
?>
Should change "I love Samus" to "I <3 Samus".
Would become very messy, tedious and hard to maintain whn you're making lots of replacements, like the OP
#8
Posted 27 December 2011 - 11:45 PM
#9
Posted 29 December 2011 - 06:37 PM
And I'm Trying The Line Of Code Now... I'll Update With Results. Thanks Samus.
Help
















