Jump to content

Search the Community

Showing results for tags '$string'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. I am using the code below to extract some information from a website: $doc = new DOMDocument();$doc->loadHTML($html);$xpath = new DomXpath($doc); foreach($xpath->query('//img/@alt') as $node){ echo $node->nodeValue."|";} An example of the output is: 1|3|.5|statusB|8|5|.0| I want to use the code below to split this output in parts: $splitdata = explode('|', $input);echo "$splitdata[0], $splitdata[1], $splitdata[2], $splitdata[3], $splitdata[4], $splitdata[5], $splitdata[6]"; But how can I get the output from echo $node->nodeValue."|"; into the string $input?
×
×
  • Create New...