Class Content
- package PHPHtmlParser
Cloneable
Instantiable
Methods |
public
__construct
(
string
$content
=
''
) Content constructor. |
public
char
(
?
int
$char
=
NULL
) :
string
Gets the current character we are at.
|
public
copyByToken
(
string
$token
,
bool
$char
=
false
,
bool
$escape
=
false
) Copies the content until it reaches the token string.,
|
public
copyUntil
(
string
$string
,
bool
$char
=
false
,
bool
$escape
=
false
) :
string
Copy the content until we find the given string.
|
public
copyUntilUnless
(
string
$string
,
string
$unless
) Copies the content until the string is found and return it
|
public
fastForward
(
int
$count
) :
PHPHtmlParser\Content
|
public
getPosition
() :
int
Returns the current position of the content.
|
public
rewind
(
int
$count
) :
PHPHtmlParser\Content
|
public
skip
(
string
$string
,
bool
$copy
=
false
) |
public
skipByToken
(
string
$token
,
bool
$copy
=
false
) |
Properties |
protected $attr |
protected
$blank
The following 4 strings are tags that are important to us.
|
protected
$content
The content string.
|
protected $equal |
protected
$pos
The current position we are in the content.
|
protected
$size
The size of the content.
|
protected $slash |