Password validation with auto checking rules
The following example will display a password field that usess some custom specifications to validate.
The following example will display a password field that usess some custom specifications to validate.
Right below lies a function that returns the string between two other strings. That’s it.
|
1 2 3 4 5 6 7 8 9 10 11 12 |
function get_string_between($string, $start, $end){ $string = ' ' . $string; $ini = strpos($string, $start); if ($ini == 0) return ''; $ini += strlen($start); $len = strpos($string, $end, $ini) - $ini; return substr($string, $ini, $len); } // USAGE $fullstring = 'this is my [tag]dog[/tag]'; $parsed = get_string_between($fullstring, '[tag]', '[/tag]'); |
Source : http://stackoverflow.com/questions/5696412/get-substring-between-two-strings-php
This is the jQuery code on how to sort a the options of a select control alphabetically
This is the way to display all errors in PHP…
When in linux use the TAR command to preserve file permissions
Here’s a list of my favorite Online password generators
A collection of useful online html and css compressors
The tool you need to check your Facebook meta tags
A simple usage of updating a field using another tables field
So what do you have to do when you want to disable update warnings for specific plugins…
Well here’s how to open a pdf file and serve it to the browser with PHP….
What can you do when you have a long long text and you want to display a portion of it using only css? The answer is that you can code like this…