Skip to content

Commit e274c6e

Browse files
readme update
1 parent 2c1d03f commit e274c6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ $result = call_c_function("sorting.c","test_bubble_sort",$arr);
573573
```
574574
####This means we will be calling the test_bubble_sort function inside of sorting.c file, and the test_bubble_sort function takes $arr as the input parameter. And the result of the test_bubble_sort function call will be stored in the $result variable.
575575
####Now let's create src/sorting.c file:
576-
```sh
576+
```php
577577
static zval * test_bubble_sort(zval * arr)
578578
{
579579
HashTable *arr_hash = arr->value.ht;
@@ -657,7 +657,7 @@ $ php -c php.ini test.php
657657
###Example 14
658658
####In this example below, we will be using PHP code together with raw C code to get the first 800 digits of PI.
659659
####The algorithm to compute PI is borrowed from https://crypto.stanford.edu/pbc/notes/pi/code.html
660-
####First, we will be creating the src/dumm.php and it looks like this:
660+
####First, we will be creating the src/dummy.php and it looks like this:
661661
```php
662662
<?php
663663
namespace Dummy;

0 commit comments

Comments
 (0)