Dr. Arne JachensDr. Arne Jachens

php Library

XML_extractAttribute

Keine Erläuterungen gefunden.

<?php
function XML_extractAttribute($xml,$attribute){
  /* STRPOS gives first occurence of substring */
  $attribute=strtolower($attribute);
  $startString=$attribute."=\"";
  $attributeLength = strlen($startString);
  $endString="\"";
  $startPos=strpos($xml,$startString);
  if ($startPos===false){
    return false;
  }else{
    $residuum=substr($xml,$startPos+$attributeLength,strlen($xml)-$startPos-$attributeLength);
    $endPos=strpos($residuum,$endString);
    $attribute=substr($residuum,0,$endPos);
    return $attribute;
  }
}
?>

Index of Library

1globals.php
2readData.php
3XML_readFile.php
4fraktal.php
5fileGrep.php
6XML_extractTag.php
7writeNamedData.php
8readXmlFile.php
9readNamedData.php
10XML_findAllElements.php
11readFromStdIn.php
12plotResult.php
13dtaus.php
14pdf.php
15fitData.php
16XML_extractElement.php
17readFilenames.php
18writeData.php
19genDTAUS.php
20closeFigures.php
21XML_extractAttribute.php
22enumerateFiles.php
23db.php
24polynominalFit.php
25LaTeXbrief.php
26hex2dec.php

Der gesamte Sourcecode darf gemäß GNU General Public License weiterverbreitet werden.