Skip to content

Commit bf63dbf

Browse files
authored
Create Parse.php
1 parent 42352d9 commit bf63dbf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Parse.php

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
$input=file_get_contents("Sine-Test.md");
3+
preg_match_all('/sin\((?<degree>(-|)(\d+)) degrees\) \= (?<value>(-|)\d+(\.\d+))/i', $input, $gets);
4+
print_r($gets['degree']);
5+
print_r($gets['value']);
6+
foreach($gets['degree'] as $index=>$degree) {
7+
//...
8+
}

0 commit comments

Comments
 (0)