You may want to dynamically change the way your flash file behaves based on where it’s hosted. To do so, you should utilize the “_url” variable to obtain the absolute path of your flash file. Continue reading “How to validate Flash absolute url paths”
Category: String Manipulation
PHP Remove last character from string
Want to remove the last character from your text. Just use Substr_Replace. This is how. Continue reading “PHP Remove last character from string”
PHP replace only first occurrence of a string match.
How to replace only the first occurrence of a string in php.
Continue reading “PHP replace only first occurrence of a string match.”
Php Remove Non-Alphanumeric Characters
How to strip all symbols and numbers from a string of alphanumeric text. This php code will help you delete, remove, strip and erase any non-alphanumeric characters, and then return the data without the unwanted characters. Continue reading “Php Remove Non-Alphanumeric Characters”
Portion() function for trimming text
Returns the portion of text specified by the start and length parameters. This help to trim text down for display in a small area or to give a sample of a larger body of text.
Continue reading “Portion() function for trimming text”
PHP strip remove white space from end of string
Need to remove the white space at the end of a string before recording the data. Use PHP’s rtrim().
Continue reading “PHP strip remove white space from end of string”