/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function string_getInsertedString($long_string,$short_string,$is_html=false){ if($long_string[$i]!=$short_string[$i])break; } if($is_html && $inserted_string[$insertion_length-1]=='<'){ } return $inserted_string; } function DOMElement_getOuterHTML($document,$element){ $html=$document->saveHTML(); $element->parentNode->removeChild($element); $html2=$document->saveHTML(); return string_getInsertedString($html,$html2,true); } function getFollowers($username){ $doc = new DomDocument; @$doc->loadHTML($x); $ele = $doc->getElementById('follower_count'); return $innerHTML; } ?> <?php echo getFollowers("YourUserID")." followers"; ?>
Comments
