Jump to content

zq29

Staff Alumni
  • Posts

    2,752
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by zq29

  1. As far as I'm aware, you can't do this with explode(). However, you might want to look into RegularExpressions, and preg_match_all().

     

    <?php
    //Untested...
    $str = "www.domain.com?id=12345678,www.domain.com?id=87654321";
    preg_match_all('~id=([0-9]{8})~is',$str,$m);
    echo "<pre>",print_r($m),"</pre>";
    ?>

     

    This would echo out all of the 8 digit strings that appear after an "id=".

  2. [ot]Tip: It's definitely worth configuring your local (W|L)AMP stack to match that of your production server, that way, anything that works locally should also work live without any problems. Try to install the same versions of Apache Web Server, MySQL and PHP as is installed on your production server, if possible. I appreciate that there are minor differences if your server is Linux based and you're running Windows locally - But match up as much as you can.[/ot]

  3. Also lately been getting into the dead weather, if anybodies heard them? Jack White's latest!

     

    Yeah, I have given it a listening to, I like it. Bit more heavier than White Stripes / Raconteurs though I thought.

  4. Never played in any proper competitions, although I'd like to give a LAN party a try, a big one, I mean I hosted an 8 computer one at my house one weekend which was pretty cool - Back in the day, we were running Half-Life DM mainly.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.