Created
October 13, 2015 17:06
-
-
Save kemalkanok/49e65822dec861e55d2e to your computer and use it in GitHub Desktop.
php örnek 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function search($word,$key) | |
{ | |
for($i=0;$i<strlen($word);$i++) | |
{ | |
if($word[$i] == $key) | |
{ | |
echo $i; | |
break; | |
} | |
} | |
} | |
search('kemal','a'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment