Skip to content

Commit

Permalink
Added example for $section->getPropertyValue()
Browse files Browse the repository at this point in the history
  • Loading branch information
Programie committed Nov 17, 2015
1 parent 92b9c47 commit 0862ee0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/simple-read.php
Expand Up @@ -9,4 +9,8 @@

$property = $section->getProperty("some key");

echo $property->value;// This will return "some value"
echo $property->value;// This will return "some value"

echo $section->getPropertyValue("some key");// This will also return "some value"

echo $section->getPropertyValue("not existing key", "fallback value");// This will return "fallback value" as the key does not exist

0 comments on commit 0862ee0

Please sign in to comment.