Benchmark array versus object

$array_numeric=[$hello,$second,$third];$array_not_numeric=['hello'=>$hello,'second'=>$second,'third'=>$third];$object_constructor=DummyClass('world',0,20.3);$object_no_constructor=new DummyClass2();
$object_no_constructor->hello='world';
$object_no_constructor->second=0;
$object_no_constructor->third=20.3;

Result (smaller is better)



How?



Advanced Programming: working with cache.

select * from countries
inner join cities on countries.idcountry=cities.idcities

What is our motivation?


Accessing a Mysql database using PHP and PdoOne

Example of an invoice.


What is an autoloader?

$obj=new \example\folder\SomeClass();
include __DIR__'/folder/SomeClass.php';
$obj=new \example\folder\SomeClass();


Lifecycle


What we could do with FFI?

1) Creating the library


@at symbol

$hello="world";
echo $hella; // <-- we show hella instead of hello
$hello="world";
echo @$hella;

Jorge Castro

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store