PHP code example of mprzytulski / arrow-path

1. Go to this page and download the library: Download mprzytulski/arrow-path library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mprzytulski / arrow-path example snippets


$arrow = new Arrow(['something' => 1]);
echo $arror->something; 

$arrow = new Arrow(['something' => 1], true);
echo $arror->something->otherthing; 

$arrow = new Arrow(['something' => 1], true);
var_dump($arror->something());