Get content between two delimiters in PHP - extract HTML comments using PHP
Quite a handy little function provided by BitRepository which enables you to grab the text between two delimiters in PHP. Example: [box type=”bio”] Sentence: Hello *world, thanks for having a look at TurkeyTunnel^ Apply function: $extract = extract_unit($stringToExtractFrom,”* “,” ^”); Result: world, thanks for