|
|
 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 |
 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: “<td align=right nowrap><font size=-1>”, 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. |
 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: “<td align=right nowrap><font size=-1>”, 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. |
 alpesh | 2011-04-04 02:37:17 - In reply to message 3 from Jonathan Schmidt-Dominé |
thanks.........
|
 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..?
|
 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');
?>
;) |
|