Download .zip |
Info | Documentation | View files (2) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2017-09-30 (2 years ago) | Not enough user ratings | Total: 138 | All time: 8,862 This week: 309 |
Version | License | PHP version | Categories | |||
search-tags-in-strin 1.0.1 | Artistic License | 5 | HTML, PHP 5 |
Description | Author | |
This class can extract given tags from a HTML document. |
|
# search_Tags_In_String This class searches in the document or in a url the repeats of the chosen tag and displays it in json format. <pre> //Example $query = new searchTagsInString(); $query->search_in = file_get_contents('https://www.egeon.es'); $query->tag = array('img', 'h2'); header('Content-type: application/json'); echo $query->ReturnData(); //result img : 0 : "<img src=\"/sites/all/themes/anchor/img/twitter-top25.png\" width=\"135\" height=\"37\" border=\"0\" alt=\"Top 25 Language Twitterers 2014\">" 1 : "<img src=\"https://www.egeon.es/sites/default/files/styles/servicios/public/Fotolia_90241958_XS.jpg?itok=w7iD2dxi\" width=\"820\" height=\"193\" alt=\"hacemos en egeon\" title=\"hacemos en egeon\">" 2 : "<img alt=\"Adquiera un de nombre de dominio\" src=\"/sites/default/files/dominios_hosting.png\" title=\"Adquiera un de nombre de dominio\">" 3 : "<img alt=\"Adquiera alojamiento web\" src=\"/sites/default/files/hosting2.png\" title=\"Adquiera alojamiento web\">" 4 : "<img alt=\"Adquiera certificados SSL\" src=\"/sites/default/files/certificados_hosting.png\" title=\"Adquiera certificados SSL\">" 5 : "<img alt=\"Adquiera correo electrónico para su empresa\" src=\"/sites/default/files/emails-hosting.png\" title=\"Adquiera correo electrónico para su empresa\">" 6 : "<img alt=\"demo correo electrónico para su empresa\" src=\"/sites/default/files/demo.png\" title=\"demo correo electrónico para su empresa\">" 7 : "<img src=\"/sites/all/themes/anchor/img/e-redonda15x15b.png\" alt=\"imagen e redonda\">" h2 : 0 : "<h2 class=\"mega\"> eGeon</h2>" 1 : "<h2 class=\"element-invisible\">Formulario de búsqueda</h2>\n" 2 : "<h2>Menú principal</h2>\n" 3 : "<h2>Tags</h2>\n" 4 : "<h2>Últimos tweets</h2>\n" 5 : "<h2>Dónde estamos</h2>\n" 6 : "<h2>Redes sociales</h2>\n" </pre>
Files |
File | Role | Description |
---|---|---|
README.md | Doc. | Documentation |
search_tags_in_string.php | Class | Class source |
search-tags-in-strin-2017-09-30.zip 1KB | |
search-tags-in-strin-2017-09-30.tar.gz 1KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.