Skip to content

Commit f0aaa48

Browse files
committed
adds example of $fiddle->play() compared to $fiddle->export
1 parent 85a273b commit f0aaa48

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

RELEASE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 0.2.1
44

5+
- Adds example of $fiddle->play() compared to $fiddle->export
56
- Fiddle start and end (setup of html layout) is now in the routes instead of having to set them in the fiddles. This prepares the code to be decoupled from the default layout.
67
- Chains configuration to Fiddle object
78
- Initializes $fiddle object from index instead of fiddle script

examples/strrchr.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22
$fiddle->export(function () {
33
$a = 'plok.php';
44
return strrchr($a, '.');
5+
});
6+
$fiddle->play(function () {
7+
$a = 'plok.php';
8+
return strrchr($a, '.');
59
});

0 commit comments

Comments
 (0)