Click here to Skip to main content
15,901,505 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: apache interface Pin
Jayapal Chandran26-Jul-10 7:56
Jayapal Chandran26-Jul-10 7:56 
QuestionPHP with ODBC Connectivity Pin
jayachandra.c4-Jun-10 19:37
jayachandra.c4-Jun-10 19:37 
AnswerRe: PHP with ODBC Connectivity Pin
cjoki6-Jun-10 9:52
cjoki6-Jun-10 9:52 
AnswerRe: PHP with ODBC Connectivity Pin
whatrevolution28-Jun-10 21:40
whatrevolution28-Jun-10 21:40 
QuestionHelp with this expression Pin
xx77abs4-Jun-10 2:59
xx77abs4-Jun-10 2:59 
AnswerRe: Help with this expression Pin
cjoki4-Jun-10 5:29
cjoki4-Jun-10 5:29 
GeneralRe: Help with this expression Pin
xx77abs4-Jun-10 5:34
xx77abs4-Jun-10 5:34 
GeneralRe: Help with this expression Pin
cjoki6-Jun-10 9:42
cjoki6-Jun-10 9:42 
Sorry made a mistake in the code. This is what it should look like. See if you can spot the change. Understanding the difference between this code and the first one I posted will answer your question. You can then test it further by moving the 0 (zero) to a different location within the array.

<?php
$test_array = array(1,"a",3,"b",5,"c",7,"d","e",0,"f","g","h","i","j","k");
$i = 0;
foreach($test_array as $x)
{   
   if($x==0)   
   {      
      echo "found You at index ".$i."!<br>";      
      exit;   
   }   
   else
   {      
      echo "still looking<br>";   
   }
   $i++;
}
?>

GeneralRe: Help with this expression Pin
xx77abs6-Jun-10 10:22
xx77abs6-Jun-10 10:22 
GeneralRe: Help with this expression Pin
cjoki7-Jun-10 2:20
cjoki7-Jun-10 2:20 
GeneralRe: Help with this expression Pin
cjoki7-Jun-10 5:25
cjoki7-Jun-10 5:25 
GeneralRe: Help with this expression Pin
xx77abs11-Jun-10 6:32
xx77abs11-Jun-10 6:32 
AnswerRe: Help with this expression PinPopular
User 17164924-Jun-10 6:33
professionalUser 17164924-Jun-10 6:33 
GeneralRe: Help with this expression Pin
cjoki6-Jun-10 9:45
cjoki6-Jun-10 9:45 
GeneralRe: Help with this expression Pin
xx77abs6-Jun-10 10:08
xx77abs6-Jun-10 10:08 
GeneralRe: Help with this expression Pin
whatrevolution22-Jun-10 23:52
whatrevolution22-Jun-10 23:52 
AnswerRe: Help with this expression Pin
whatrevolution23-Jun-10 0:13
whatrevolution23-Jun-10 0:13 
QuestionCloning a XLS worksheet in PHP Pin
Bijayani31-May-10 23:47
Bijayani31-May-10 23:47 
AnswerRe: Cloning a XLS worksheet in PHP Pin
Kristian Sixhøj3-Jun-10 7:29
Kristian Sixhøj3-Jun-10 7:29 
AnswerRe: Cloning a XLS worksheet in PHP Pin
Richard MacCutchan3-Jun-10 8:40
mveRichard MacCutchan3-Jun-10 8:40 
QuestionLearning Linux Pin
pc.bharti27-May-10 23:33
pc.bharti27-May-10 23:33 
AnswerRe: Learning Linux Pin
Richard MacCutchan28-May-10 0:10
mveRichard MacCutchan28-May-10 0:10 
GeneralRe: Learning Linux Pin
wbgxx21-Jun-10 3:58
wbgxx21-Jun-10 3:58 
AnswerRe: Learning Linux Pin
Iranian MM7-Sep-11 6:51
Iranian MM7-Sep-11 6:51 
QuestionPHP DOM Pin
vho12320-May-10 4:50
vho12320-May-10 4:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.