FeetUpGaming
Member
Hey having trouble figuring how to replace multiple sets of characters in a string at once.
I have a file save and load system where the player picks the save file name but to do that i need to make sure they don't do anything silly like putting @,£,$,/,| etc in the file name so how would i go through and replace all them characters or would i have to do each one manually with string_replace_all()? Thanks
I have a file save and load system where the player picks the save file name but to do that i need to make sure they don't do anything silly like putting @,£,$,/,| etc in the file name so how would i go through and replace all them characters or would i have to do each one manually with string_replace_all()? Thanks