Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 384 Bytes

File metadata and controls

21 lines (17 loc) · 384 Bytes

⛓️ Chain

Learning Fluent API (⛓️ Chaining method) in PHP 8+ like JavaScript/TypeScript, others programming languages.


Example

JavaScript

const ajax = new XMLHttpRequest();
ajax.send();

PHP

$db = new DBQuery();
$user_name = $db->select('name', 'email')
                 ->from('users')
                 ->where('id', 2);