Regex

  • BladiN
  • Born
  • Born
  • BladiN
  • Posts: 2

Post 3+ Months Ago

I've got a PHP code
PHP Code: [ Select ]
eregi('<TD align="left">(.*+)</TD>', $list, $usr);
 
echo "<b>" . print_r($usr,1) . "</b>";
  1. eregi('<TD align="left">(.*+)</TD>', $list, $usr);
  2.  
  3. echo "<b>" . print_r($usr,1) . "</b>";


This should output something like [xxx]xxx (#xxx), but it doesn't give any output, can somebody say me what's wrong with the code?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

I think this is what you're trying to do:
PHP Code: [ Select ]
echo "<b>" . $usr[ 1 ] . "</b>";



$this

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 111 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.