note 67111 added to control-structures.foreach
| From: | php-general at lists dot php dot net | Date: | Sat, 03 Jun 2006 12:11:57 +0000 |
| Subject: | note 67111 added to control-structures.foreach | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-113097@lists.php.net to get a copy of this message | ||
it should be a help to make the linkbox in php and to automatic include the sites
<?php foreach($menue as $x=>$y){
if(isset($_GET["seite"])){
if ($m != $_GET["seite"]){
echo '<p class=""><a href="index.php?seite='.$x.
'" title='.$y.'>'.$y.'</a></p>';
}
else{
echo '<p class="">'.$l.'</p>';
}
}
else{
if($x ==""){
echo '<p class="">'.$y.'</p>';
}
else{echo '<p class=""><a href="index.php?seite='.$x.
'" title='.$y.'>'.$y.'</a></p>';
}
}
}
if (isset($_GET["seite"]))
include $_GET["seite"];
else
include ("");
?>
----
Server IP: 192.35.244.50
Probable Submitter: 212.152.242.73
----
X-Spam-Status: No, hits=4.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
HTML_30_40,HTML_MESSAGE autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/control-structures.foreach.php
Edit -- http://master.php.net/note/edit/67111
Del: integrated -- http://master.php.net/note/delete/67111/integrated
Del: useless -- http://master.php.net/note/delete/67111/useless
Del: bad code -- http://master.php.net/note/delete/67111/bad+code
Del: spam -- http://master.php.net/note/delete/67111/spam
Del: non-english -- http://master.php.net/note/delete/67111/non-english
Del: in docs -- http://master.php.net/note/delete/67111/in+docs
Del: other reasons-- http://master.php.net/note/delete/67111
Reject -- http://master.php.net/note/reject/67111
Search -- http://master.php.net/manage/user-notes.php