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
The Microsoft Firewall service terminated with service-specific error 126 (0x7E).
Q945119 - storport.sys 5.2.3790.4189
Security error accessing url-Destination: DefaultHTTP-Channel.Securi
ty.Error
Apache2 name-based virtual host & SSL
How to connect Hyper-V Server 2008 R2 to Cluster Shared Volumes
Setting up Domain Trusts
Student Profiles
Exchange 2003 to Exchange 2010 Migration
last 3 rows returned in a group - using slq server 8.0.760
The future of VBA