Chek if a phone numbers is valid, according to its syntax (should be: "+390523599314"). True if it's valid, False otherwise function is_valid_phone( $phone ) { if ( $phone[0] != "+" ) { ...
If you have a list of items (for example)......
The best way to determine the character count of a UTF8 string. function strlen_utf8( $str ) { return mb_strlen( $str, 'UTF-8' ); } //or... function strlen_utf8( $str ) { $c = 0;...
Use this function for change timestamp to custom format......