Skip to content

Commit

Permalink
Updated demos
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgisby committed Jul 10, 2010
1 parent 3e873fa commit 43ffd83
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.php
Expand Up @@ -69,6 +69,15 @@
echo '<p>This is zero indexed</p>';
$result = $array[':elements(0,2)']; // Select elements 0 and 2 from the array (1st and third elements). Zero indexed.
echo $result;

echo '<h2>Nasty, malformed :elements(0,2,) selector</h2>';
$result = $array[':elements(0,2,)'];
echo $result;

echo '<h2>Testing As Array</h2>';
var_dump($array->as_array());



?>
</pre>

0 comments on commit 43ffd83

Please sign in to comment.