View fiddle_077794.php
<?php
echo "Yes, aku bisa PHP :)";
echo "<br>";
echo "Ternyata PHP itu mudah kawan";
?>
View fiddle_081491.php
<?php
$arrVacio=array();
$varDeclarada;
$arrValores=array(
'vacio ("")'=>'',
'en blanco (" ")'=>' ',
'NULL'=>NULL,
'TRUE'=>TRUE,
'FALSE'=>FALSE,
'0 (como cadena)'=>'0',
View fiddle_065977.php
<?php
function greeting($name, $age) {
return "<h1>Hello " . $name . " you are " . $age . " years old today. Happy Birthday!!</h1>";
}
echo greeting('Billy', '146');
?>
View fiddle_012292.php
<?php
$n = '2.2737367544323E-13';
$n = preg_replace('/[^0-9.]/', '', $n);
echo number_format($n, 2, '.', '');
?>
View fiddle_015781.php
<?php
$str = "parital Under production";
$result = explode(' ', $str, 2);
print_r($result);
?>
View fiddle_059392.php
<html>
<form>
<input type="text" name="currency" method="post">
<select name='cur1'>
<option value="can">Candian Dollor(AUD)</option>
<option value="USD" selected>US Dollar(USD)</option>
<option value="inr" selected>indian rupee</option>
</select>
View fiddle_084708.php
<!DOCTYPE html>
<html>
<body>
<div> Open Work Example </div>
<?php
$workid = "S-95";
/* In a production scenario, this id would be retrieved dynamically maybe from a rest service which takes in a few input search
parameters and returns the id, like get me the id of the loan application of ApplicantName = xxx
*/
View fiddle_012598.php
<?php
/**
*
* Consulta con PDO mediante query
*
* Notas:
* - Los require indicados solo sirven para este ejemplo
* - La consulta SQL y el resultado son sólo para mostrar un ejemplo ,
* cada uno debe adaptarla a sus necesidades
View fiddle_042398.php
<!DOCTYPE html>
<html>
<body>
<div> Open Work Example </div>
<?php
$workid = "S-95";
/* In a production scenario, this id would be retrieved dynamically maybe from a rest service which takes in a few input search
parameters and returns the id, like get me the id of the loan application of ApplicantName = xxx
*/