sdsd - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of sdsd.php
- <?php
- session_start();
- $first_string = "";
- $second_string = "";
- if (!isset($_SESSION['first_string'])) {
- echo "No field first_string in session";
- } else{
- $source1 = $_SESSION['first_string']
- $d1 = array();
- for($i=0; $i<strlen($s1); $i++)
- if ($i % 2 == 0){
- $d1[$i] = $s1[$i];
- }
- $first_string = implode("", $d1);
- }
- if (!isset($_SESSION['second_string'])) {
- echo "No field second_string in session";
- } else{
- $source = $_SESSION['first_string']
- $d2 = array();
- for($i=0; $i<strlen($s2); $i++)
- if ($i % 2 != 0){
- $d2[$i] = $s2[$i];
- }
- $second_string = implode("", $d2);
- }
- $result = $data1 . $data2;
- $_SESSION['result'] = $result;
- ?>
File Description
- sdsd
- PHP Code
- 29 Apr-2022
- 749 Bytes
You can Share it:
Latest PHP Pastes