codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php $arrTest = array('val1','val2','val3','val4'); $arrTest['lastKey'] = 'Last Key'; foreach($arrTest as $key => $val) { if($key === 'lastKey') { echo "last found"; } }
Private
[
?
]
Run code
Submit