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
Mobile Phones / Tablets > Android : smb not working with Samsung G...
Databases > Oracle > Performance Tuning : When and what's been analyzed
Databases > Oracle > Performance Tuning : Sessions, transactions and rol...
Databases > Oracle > ASM : ASM empty directory doesn't ge...

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

Home |  FAQ |  Terms of Use |  Privacy Policy

© 2005 tiplib.com