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
<?php | |
echo json_encode([ | |
["id"=>1,"nom"=>"nom 1"], | |
["id"=>2,"nom"=>"nom 2"] | |
]); | |
?> |
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
<script src="https://code.highcharts.com/highcharts.js"></script> | |
<script src="https://code.highcharts.com/modules/exporting.js"></script> | |
<script src="https://code.highcharts.com/modules/export-data.js"></script> | |
<div id="container" style="min-width: 300px; height: 400px; margin: 0 auto"></div> | |
<?php | |
// Function to print ramdom numbers | |
function randomNumbers(){ | |
$randoms= []; | |
for ($rnd=1;$rnd<=80;$rnd++) | |
{ |
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
<?php | |
class Meli { | |
/** | |
* @version 2.0.0 | |
*/ | |
const VERSION = "2.0.0"; | |
/** | |
* @var $API_ROOT_URL is a main URL to access the Meli API's. | |
* @var $AUTH_URL is a url to redirect the user for login. | |
*/ |
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
<?php | |
class Foo | |
{ | |
public $bar = 'barValue'; | |
protected $baz = 'bazValue'; | |
private $tab = 'tabValue'; | |
} | |
$foo = new Foo(); |
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
<?php | |
$nested_object = new stdClass; | |
$nested_object->apple = "apple value"; | |
$nested_object->orange = "orange value"; | |
$nested_object->grape = "grape value"; | |
$nested_object->pear = "pear value"; | |
$array = json_decode(json_encode($nested_object), true); | |
var_dump($nested_object, "object converted to array using json methods" , $array); | |
?> |
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
<?php | |
echo "Hello World" | |
?> |
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
<?php | |
?> |
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
<?php | |
// Script Name: Afficher adressse IP dans une image | |
// Script URI: http://crash-blog.com/afficher-adresse-ip-dans-une-image/ | |
// Description: Afficher adresse IP dans un image en utilisant la librairie GD. | |
// Author: Crashmaster | |
// Author URI: http://crash-blog.com/ | |
// License: GPLv2 or later | |
// configuration |
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
<?php | |
// Script Name: Afficher adressse IP dans une image | |
// Script URI: http://crash-blog.com/afficher-adresse-ip-dans-une-image/ | |
// Description: Afficher adresse IP dans un image en utilisant la librairie GD. | |
// Author: Crashmaster | |
// Author URI: http://crash-blog.com/ | |
// License: GPLv2 or later | |
// configuration |
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
<?php | |
echo "abc"; | |
?> |