Re: [PHP] Regexp help (simple)

2004-01-22 Thread Dagfinn Reiersl
Victor Spng Arthursson wrote: Have been playing around a bit with this code, but I can't get it to work with international characters For example, if I feed my function: function split_bokid($bokid) { if (preg_match('/^([a-z]{2,3})([0-9]{4,5}(\-[0-9]{1,2}){0,1})$/

Re: [PHP] Is this possible ?

2004-01-19 Thread Dagfinn Reiersl
An object-oriented way of doing it: keep the extra result in a member variable and get it separately. You might not find this necessary, but it gets more useful in more complex cases. class MyClass { var $num; Function MyFunc(){ if(isset($_POST['var'])){ $sql = mysql_query(select * from

Re: [PHP] Syntax Error - This is WEIRD!

2004-01-16 Thread Dagfinn Reiersl
made an include file like this: ?php echo '?php echo Hello World!; ?'; ? If you inlude that using HTTP, it outputs Hello world! Seems like a strange thing to do, outputting PHP code on a Web page, but it's not without conceivable usefulness. -Original Message- From: Dagfinn Reiersl [mailto