Microsoft
Software
Hardware
Network
Question : php str_replace question
The output of the array ['location'] is always state, city and zip:
<?=niceLabel(str_replace('
,', ', ', $listing['location']), false)?>
So the output of the code above is:
North Jackson, OH 44451
What I would like to do is to remove City and State so the only output will be the Zip Code only:
44451
Answer : php str_replace question
Assuming that the zipcode is always 5 numbers long, and preceeded by a space, this works:
$string="Anywhere, OH 12345";
$zip = substr($string,strrpos($st
ring," ")+1,5);
echo $zip;
Random Solutions
ADmodify.exe "mailbox rights modification disabled" ??
Exchange 2010 setup.com /preparead fails
importing the data into table having xml datatype using db2 import.
Not downloading Offline address book files. A server (URL) could not be located. 0X8004010F
ScrollText In DialgBox? - Delphi
Polycom ViewStation EX Network setup
How do I get the F6 storage drivers to work on a 8100 Elite Convertable Mini Tower?
Linux/php serial port read - How to stop fread() waiting forever if no new data?
how can i get a list of client inbox rules through powershell
Dot Net IL Code to C# conversion