This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
$applicationIndex = realpath(getcwd() . '/public/index.php'); | |
if (!empty($applicationIndex)) { | |
include $applicationIndex; | |
} else exit('You are not in a valid Zend Framework Application root directory'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$data = array('parent' => array('child' => 'hello world')); | |
$filter = new DotNotationFilter($data); // $data is an object or an array | |
$hello = $filter->get('parent.child'); // eq to $data['parent'][’child'] or $data->parent->child; | |
$hello == 'hello world'; |