summaryrefslogtreecommitdiff
path: root/ext/enchant
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2017-10-04 23:53:51 +0200
committerNikita Popov <nikita.ppv@gmail.com>2017-10-05 12:34:43 +0200
commitd5cb3587658e0ad5914d26318d16981ad582f57c (patch)
treee612742d89925170858759250543fd9f4ef2b4b7 /ext/enchant
parent47a86687e812115a556f9e5e732d6e4675927246 (diff)
downloadphp-git-d5cb3587658e0ad5914d26318d16981ad582f57c.tar.gz
Remove enchant PHP example
Diffstat (limited to 'ext/enchant')
-rw-r--r--ext/enchant/docs/examples/example1.php25
1 files changed, 0 insertions, 25 deletions
diff --git a/ext/enchant/docs/examples/example1.php b/ext/enchant/docs/examples/example1.php
deleted file mode 100644
index 048cc83a1a..0000000000
--- a/ext/enchant/docs/examples/example1.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-$tag = 'en_US';
-$r = enchant_broker_init();
-$bprovides = enchant_broker_describe($r);
-echo "Current broker provides the following backend(s):\n";
-print_r($bprovides);
-
-
-if (enchant_broker_dict_exists($r,$tag)) {
- $d = enchant_broker_request_dict($r, $tag);
- $dprovides = enchant_dict_describe($d);
- echo "dictionary $tag provides:\n";
- $spellerrors = enchant_dict_check($d, "soong");
- print_r($dprovides);
- echo "found $spellerrors spell errors\n";
- if (spellerrors) {
- $suggs = enchant_dict_suggest($d, "soong");
- echo "Suggestions for 'soong':";
- print_r($suggs);
- }
- enchant_broker_free_dict($d);
-} else {
-}
-enchant_broker_free($r);
-?>