note 42256 modified in function.similar-text by danbrown

From: Date: Mon, 01 Mar 2010 15:55:04 +0000
Subject: note 42256 modified in function.similar-text by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166476@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: <?php 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! :) --was-- 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! :) http://php.net/manual/en/function.similar-text.php

« previous php.notes (#166476) next »