Simple Perl variables are called scalars. Examples of scalar values are
$number = 123;
$string = "String";
$file_handle = open "<filename";
$null_value = undef;
$instance = MyClass->new;| <?php | |
| function assets($path) | |
| { | |
| $file = realpath($path); | |
| if (!file_exists($file)) throw new Exception("Le fichier {$file} n'existe pas"); | |
| $mtime = filemtime($file); | |
| $path_info = pathinfo($path); |
| <?php | |
| /** | |
| * Not Modified field based | |
| * Warning: if you change the file and the field | |
| * `updatedAt` don't change, your users won't see the change | |
| * (except those who don't have a cache) | |
| */ | |
| $result = [ |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>array includes #jsbench #jsperf</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
| <script src="./suite.js"></script> | |
| </head> | |
| <body> | |
| <h1>Open the console to view the results</h1> |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| typedef struct Resultat { | |
| char prenom[30]; | |
| float note; | |
| } Resultat; | |
| typedef struct Ie { | |
| char libelle[50]; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>Untitled benchmark</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
| <script src="./suite.js"></script> | |
| </head> | |
| <body> | |
| <h1>Open the console to view the results</h1> |