View fiddle_026914.php
<?php
namespace InterfacesExampleApi;
/**
* Interface ApiClientInterface
* @package InterfacesExampleApi
*/
interface ApiClientInterface
{
View fiddle_084501.php
<?php
for($i=0; $i<10; $i++){
for($j=0; $j<$i; $j++){
echo $j+1 . " ";
}
echo "<br>";
}
?>
View fiddle_026929.php
<!DOCTYPE html>
<html>
<head>
<title>fibonacci Sequence</title>
<link rel="stylesheet" type="text/css" href="common.css" />
<style type="text/css">
th {
text-align: left;
background-color: #aaa;
}
View fiddle_021551.php
<?php
define( 'MYSQL_HOST', '//////' );
define( 'MYSQL_USER', '//////' );
define( 'MYSQL_PASSWORD', '//////' );
define( 'MYSQL_DB_NAME', '//////' );
try
{
$PDO = new PDO( 'mysql:host=' . MYSQL_HOST . ';dbname=' . MYSQL_DB_NAME, MYSQL_USER, MYSQL_PASSWORD, array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
View fiddle_041254.php
<?php
libxml_use_internal_errors(true);
$html = file_get_contents('https://www.set.or.th/set/companyhighlight.do?symbol=CPALL&ssoPageId=5&language=th&country=TH');
$doc = new DOMDocument();
$doc->loadHTML($html);
$maincontent = $doc->getElementById('maincontent');
$maincontent_html = $maincontent->ownerDocument->saveHTML($maincontent);
echo $maincontent_html;
?>
View fiddle_047706.php
<?php
setcookie("test_cookie", "test", time() + 3600, '/');
?>
<html>
<body>
<?php
$seedUrl = "https://finance.yahoo.com/quote/%5EGSPC/history?period1=1496548800&period2=1496635200&interval=1d&filter=history&frequency=1d";
View fiddle_083037.php
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Datos obtenidos</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.css"/>
</head>
<body>
View fiddle_058577.php
<?php
/**
* PDO MySQL initial code
*
* User permissions of database
* Create, Alter and Index table, Create view, and Select, Insert, Update, Delete table data
*
* @package PhpFiddle
* @link http://phpfiddle.org
View fiddle_091230.php
<?php
/**
* Mysqli initial code
*
* User permissions of database
* Create, Alter and Index table, Create view, and Select, Insert, Update, Delete table data
*
* @package PhpFiddle
* @link http://phpfiddle.org
View fiddle_060872.php
<?php
/*
For demo, click "Run" now!
Instructions
* - Scroll to settings object in Line 23
* - Add as many 'items' as you wish
* - Experiment with thumnbail margins, borders (no border-box box sizing)