downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

tidyNode::isAsp> <tidyNode::hasChildren
[edit] Last updated: Fri, 24 Jun 2011

view this page in

tidyNode::hasSiblings

(PHP 5 >= 5.0.1)

tidyNode::hasSiblingsبررسی برادر داشتن گره

Description

bool tidyNode::hasSiblings ( void )

تایید برادر داشتن گره.

Return Values

بازگرداندن TRUE اگر گره برادر داشته باشد در غیر این صورت FALSE.

Examples

Example #1 مثال tidyNode::hasSiblings()

<?php

$html 
= <<< HTML
<html><head>
<?php echo '<title>title</title>'; ?>
<# 
  /* JSTE code */
  alert('Hello World'); 
#>
</head>
<body>

<?php
  // PHP code
  echo 'hello world!';
?>

<%
  /* ASP code */
  response.write("Hello World!")
%>

<!-- Comments -->
Hello World
</body></html>
Outside HTML
HTML;


$tidy tidy_parse_string($html);
$num 0;

// the html tag
var_dump($tidy->html()->hasSiblings());

// the head tag
var_dump($tidy->html()->child[0]->hasSiblings());

?>

The above example will output:

bool(false)
bool(true)

Notes

Note:

این تابع به نام tidy_node::has_siblings() در PHP 4/Tidy 1 شناخته می‌شود.



add a note add a note User Contributed Notes tidyNode::hasSiblings - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites