Listing du fichier protminmax.php
00001 <?php
00002
00003 echo "Longueurs de protéines. \n" ;
00004
00005 $nomFicXml = "leadb880.xml" ;
00006
00007 $prots = simplexml_load_file($nomFicXml) ;
00008 $minLng = pow(10,6) ;
00009 # ceci est du php 7 : $minLng = 10**6 ;
00010 $maxLng = 0 ;
00011
00012 foreach ($prots->xpath('//@length') as $lng) {
00013 $lng = intval($lng) ;
00014 if ($lng<$minLng) { $minLng = $lng ; } ;
00015 if ($lng>$maxLng) { $maxLng = $lng ; } ;
00016 } // fin de pour chaque
00017
00018 echo " longueur minimale $minLng aa, longueur maximale $maxLng aa.\n\n" ;
00019
00020 ?>
Pour ne pas voir les numéros de ligne, ajoutez &nl=non à la suite du nom du fichier.
Retour à la page principale de (gH)