str_replace question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Citizen
Forum Contributor
Posts: 300
Joined: Wed Jul 20, 2005 10:23 am

str_replace question

Post by Citizen »

How can I accomplish this?

Code: Select all

$page = str_replace('<?xml version="1.0" encoding="(anything)"?>', '<?xml version="1.0" encoding="ISO-8859-1"?>', $page);
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

REGEX FTW LOL BBQ
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

preg_match() (roflsause bbq)
Post Reply