View fiddle_012886.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Toggle</title>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
View fiddle_051905.php
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Toggle</title>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
View fiddle_062356.php
<?php
header('Content-Type: application/json');
echo json_encode($_POST);
?>
View fiddle_076659.php
<?php
echo "abc";
?>
View fiddle_030842.php
<?php
$timezone = "Asia/Karachi";
date_default_timezone_set($timezone);
$date = "2017-02-16";
$from_time = "8:00 AM";
$to_time = "10:00 AM";
$fr_time = date("H:i:s", strtotime($from_time));
$t_time = date("H:i:s", strtotime($to_time));
View fiddle_033929.php
<?php
class Vehicle{
var $Transportation_number;
var $Seat;
var $Baggage;
public function get_Transportation_number()
{
return ($this->Transportation_number);
}
public function get_Seat()
View fiddle_070401.php
<?php
$photo = [
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
View fiddle_071020.php
<?php
/**
* Encode email
*
*/
function encode_email($e) {
$output = '';
for ($i = 0; $i < strlen($e); $i++) { $output .= '&#'.ord($e[$i]).';'; }
return $output;
View fiddle_056983.php
<?php
$array = array();
$question_data = ' <img class="img-responsive" src="/uploads/images/questions/93_20161017102613.jpg" style="max-height:400px;" />
<img class="img-responsive" src="/uploads/images/questions/93_20161017102615.jpg" style="max-height:400px;" />';
$xml = new DOMDocument();
$xml->loadHTML($question_data);
View fiddle_097230.php
<?php
/**
* Convert Tag img to array
* (src) OR (src|alt|class|...)
**/
$img_tag = '<img class="vote-up" src="/content/img/vote-arrow-up.png" alt="vote up" title="This was helpful (click again to undo)" />';
preg_match('/(src)=("[^"]*")/i',$img_tag, $src);
echo '<pre>';