note 42256 added to function.similar-text
| From: | hate at spam dot com dot BR | Date: | Mon, 10 May 2004 01:21:23 +0000 |
| Subject: | note 42256 added to function.similar-text | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69394@lists.php.net to get a copy of this message | ||
In PHP4+, you don't need to pass the percent variable as reference..
Instead, use this way:
<?
similar_text($string1, $string2, $p);
echo "Percent: $p%";
?>
In PHP5, you'll get a ugly warning message when passing this variable as reference.. But
it's configurable in php.ini (allow_call_time_pass_reference = Off)
That's it... Another great function! :)
----
Manual Page -- http://www.php.net/manual/en/function.similar-text.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42256
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42256&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42256&report=yes
Search -- http://master.php.net/manage/user-notes.php