note 71384 added to function.preg-replace
| From: | Magikz at osu1 dot php dot net | Date: | Sat, 25 Nov 2006 19:35:06 +0000 |
| Subject: | note 71384 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120075@lists.php.net to get a copy of this message | ||
Well, I need help with preg_replaces, please, I made this and got an error on every replace line:
<?php
//file meant to change text into images representing the text.
require 'main.php';
require 'style.php';
$text = $_GET['text'];
$text=preg_replace('0','<img src=images/num1/0.gif>');
$text=preg_replace('1','<img src=images/num1/1.gif>');
$text=preg_replace('2','<img src=images/num1/2.gif>');
$text=preg_replace('3','<img src=images/num1/3.gif>');
$text=preg_replace('4','<img src=images/num1/4.gif>');
$text=preg_replace('5','<img src=images/num1/5.gif>');
$text=preg_replace('6','<img src=images/num1/6.gif>');
$text=preg_replace('7','<img src=images/num1/7.gif>');
$text=preg_replace('8','<img src=images/num1/8.gif>');
$text=preg_replace('9','<img src=images/num1/9.gif>');
$text=preg_replace('A','<img src=images/num1/A.gif>');
$text=preg_replace('N','<img src=images/num1/N.gif>');
$text=preg_replace('_','<img src=images/num1/_.gif>');
print"$text";
?>
I made that to what I understood, as Im new to this, so anyone knows the problem?
----
Server IP: 64.71.164.2
Probable Submitter: 72.50.2.108
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- https://master.php.net/note/edit/71384
Del: integrated -- https://master.php.net/note/delete/71384/integrated
Del: useless -- https://master.php.net/note/delete/71384/useless
Del: bad code -- https://master.php.net/note/delete/71384/bad+code
Del: spam -- https://master.php.net/note/delete/71384/spam
Del: non-english -- https://master.php.net/note/delete/71384/non-english
Del: in docs -- https://master.php.net/note/delete/71384/in+docs
Del: other reasons-- https://master.php.net/note/delete/71384
Reject -- https://master.php.net/note/reject/71384
Search -- https://master.php.net/manage/user-notes.php