TODO finish
This commit is contained in:
1 parent
7c17f4859c
commit
22c245f14d
7 files changed
+74
No files matched your search
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
$valid_input = $_POST['input_text'];
|
||||
|
||||
if (isset($_POST['input_char'])){
|
||||
$locations = array();
|
||||
for ($i=0; $i < strlen($valid_input); $i++) {
|
||||
if ($_POST['input_char'] == $valid_input[i]){
|
||||
array_push($locations, $i);
|
||||
}
|
||||
}
|
||||
|
||||
echo $locations[0];
|
||||
}
|
||||
Reference in new issue
Block a user