svn: /phpdoc/en/trunk/reference/enchant/functions/ enchant-dict-add-to-personal.xml

From: Date: Mon, 17 Aug 2015 23:14:23 +0000
Subject: svn: /phpdoc/en/trunk/reference/enchant/functions/ enchant-dict-add-to-personal.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13619@lists.php.net to get a copy of this message
cmb Mon, 17 Aug 2015 23:14:23 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=337525 Log: added basic example Changed paths: U phpdoc/en/trunk/reference/enchant/functions/enchant-dict-add-to-personal.xml Modified: phpdoc/en/trunk/reference/enchant/functions/enchant-dict-add-to-personal.xml =================================================================== --- phpdoc/en/trunk/reference/enchant/functions/enchant-dict-add-to-personal.xml 2015-08-17 23:13:49 UTC (rev 337524) +++ phpdoc/en/trunk/reference/enchant/functions/enchant-dict-add-to-personal.xml 2015-08-17 23:14:23 UTC (rev 337525) @@ -45,7 +45,30 @@ &return.success; </para> </refsect1> + + <refsect1 role="examples"> + <example> + <title>Adding a word to a PWL</title> + <programlisting role="php"> +<![CDATA[ +<?php +$filename = './my_word_list.pwl'; +$word = 'Supercalifragilisticexpialidocious'; + +$broker = enchant_broker_init(); +$dict = enchant_broker_request_pwl_dict($broker, $filename); + +enchant_dict_add_to_personal($dict, $word); + +enchant_broker_free($broker); + +?> +]]> + </programlisting> + </example> + </refsect1> + <refsect1 role="seealso"> &reftitle.seealso; <para>

« previous php.doc.cvs (#13619) next »