Search found 2 matches

by dledmonds
Wed Aug 04, 2004 12:13 pm
Forum: PHP - Code
Topic: Regex Split
Replies: 2
Views: 278

Regex Split

I'm hoping this is easy to achieve, but I'm a bit lost as to how without using a whole bunch of strpos and substr functions. I've seen regex in php, but they only seem to split/match based on one pattern. Some text ... "<start>blah blah<end><start>more blah<end>" I'd like to split the text...
by dledmonds
Wed Jul 21, 2004 10:40 am
Forum: PHP - Code
Topic: Pulling class definition from a database
Replies: 1
Views: 275

<?
eval( 'class testing { function testing() {} function hello() { echo( ''hello'' ); } }' );
$testing = new testing();
$testing->hello();
?>

worked fine when I tested it :)