PHP Classes

help me

Recommend this page to a friend!

      GoogleCrawler  >  All threads  >  help me  >  (Un) Subscribe thread alerts  
Subject:help me
Summary:good job
Messages:6
Author:alpesh
Date:2011-04-01 02:39:49
Update:2011-04-04 22:20:14
 

  1. help me   Reply   Report abuse  
Picture of alpesh alpesh - 2011-04-01 02:39:50
can u explain last constructor as given below

public function __construct()
$pos = strpos($this->content, '</b>', $pos+30);
$pos = strpos($this->content, '</b>', $pos+4);
$pos = strpos($this->content, '<b>', $pos+4);
$npos = strpos($this->content, '</b>', $pos+3);


what is this $pos+30 / $pos+4 .....? i can understand this value

  2. Re: help me   Reply   Report abuse  
Picture of Jonathan Schmidt-Dominé Jonathan Schmidt-Dominé - 2011-04-01 16:52:42 - In reply to message 1 from alpesh
Ah, it should be 37, have a look at the line before: &#8220;<td align=right nowrap><font size=-1>&#8221;, length: 37. strpos(bla, $pos+37) means: search after the last match with length 37. Will fix it. Sorry, the example is currently unavailable because of DNS-problems, it will be back very soon.

  3. Re: help me   Reply   Report abuse  
Picture of Jonathan Schmidt-Dominé Jonathan Schmidt-Dominé - 2011-04-01 16:53:30 - In reply to message 1 from alpesh
Ah, it should be 37, have a look at the line before: &#8220;<td align=right nowrap><font size=-1>&#8221;, length: 37. strpos(bla, $pos+37) means: search after the last match with length 37. Will fix it. Sorry, the example is currently unavailable because of DNS-problems, it will be back very soon.

  4. Re: help me   Reply   Report abuse  
Picture of alpesh alpesh - 2011-04-04 02:37:17 - In reply to message 3 from Jonathan Schmidt-Dominé
thanks.........


  5. Re: help me   Reply   Report abuse  
Picture of alpesh alpesh - 2011-04-04 02:38:21 - In reply to message 3 from Jonathan Schmidt-Dominé
thanks.........
but 37 is values of what ? how do you know this value..?


  6. Re: help me   Reply   Report abuse  
Picture of Jonathan Schmidt-Dominé Jonathan Schmidt-Dominé - 2011-04-04 22:20:14 - In reply to message 5 from alpesh
<?php
assert(strlen('<td align=right nowrap><font size=-1>') == 37, 'I am a liar');
?>
;)