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
Export Access 2010 Report to CSV with Headers?
AS3 tween multiple arrows along a path
Virtual Memory
Windows XP and Microsoft Outlook and Windows Installer problems
classic asp recordset paging
Outlook 2007/Mozilla Thunderbird Cannot Connect to Email Server
Any ideas how to create your own loadbalancer using linux?
BGINFO via GPO server 2008, error loading bgi file even though its all loaded correctly
Cost of CAT5e cable installation
average value of a function