home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2008 February
/
PCWFEB08.iso
/
Software
/
Resources
/
Developers
/
Alleycode HTML Editor 2.2
/
alleycodesetup.exe
/
{app}
/
PHP
/
replace.php
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
PHP Script
|
2003-11-08
|
326 b
|
11 lines
<?php
// Provides: You should eat pizza, beer, and ice cream every day
$phrase = "You should eat fruits, vegetables, and fiber every day.";
$healthy = array("fruits", "vegetables", "fiber");
$yummy = array("pizza", "beer", "ice cream");
$newphrase = str_replace($healthy, $yummy, $phrase);
echo $newphrase;
?>