From a0812757e3c9a9bec496244a426210d82b98c81f Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Sun, 14 Dec 2003 23:31:23 +0000 Subject: [PATCH] typo and better function git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146462 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/yaz/reference.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/yaz/reference.xml b/reference/yaz/reference.xml index 3041af5f50..33b44a5788 100644 --- a/reference/yaz/reference.xml +++ b/reference/yaz/reference.xml @@ -1,5 +1,5 @@ - + YAZ functions YAZ @@ -82,7 +82,7 @@ if (empty($term) || count($host) == 0) { '; } else { - echo 'You searced for ' . htmlspecialchars($term) . '
'; + echo 'You searched for ' . htmlspecialchars($term) . '
'; for ($i = 0; $i < $num_hosts; $i++) { $id[] = yaz_connect($host[$i]); yaz_range($id[$i], 1, 10); @@ -103,7 +103,7 @@ if (empty($term) || count($host) == 0) { $rec = yaz_record($id[$i],$p,"string"); if (empty($rec)) continue; echo "
$p
"; - echo ereg_replace("\n", "
\n",$rec); + echo nl2br($rec); echo "
"; } echo '';