Put your tips and tricks online - Share your knowledge! Login | Register
 
 
  Search     Advanced search
 

Home | Ask Question | Add tip | Questions | My tips | Recent tips & tricks | Suggest a category | FAQ | Forums

 
 
 
 Found 4 tips, Displaying 1 - 4 
 
Sort by 
 
 Check if a string starts with a specific character
Use a php function preg_match to see if a string starts with a particular character, for example:
 More...
01/03/07
 
 
 Remove an element from array
An easy way of removing an array element in PHP script is to use function array_diff. For example:
 More...
06/19/06
 
 
 Sort array keys by length
In PHP associative arrays it may be useful to sort by the string length (size of the key). Here's how to do it:
     
More...

03/24/06
 
 
 Random array element
You can use the following code to print a random element from PHP array:
 More...
02/17/06
 
 


Recent tips & tricks
Internet > Web Servers > Apache > mod_rewrite and .htaccess : Set PHP register_globals on in...
Operating Systems > Linux : Find world writable files
Databases > Oracle > Performance Tuning : Get buffer cache hit ratio / m...
Databases > Oracle : Dropping online redo logs

More categories
Databases | Programming | Hardware | Operating Systems | Networking | Internet | ERP / CRM | Games & Multimedia | Graphics & Design | Miscellaneous | Office Software | TipLib FAQ
 

Home |  FAQ |  Terms of Use |  Privacy Policy

© 2005 tiplib.com