note 71384 deleted from function.preg-replace by colder
| From: | colder@php.net | Date: | Mon, 18 Jun 2007 20:06:17 +0000 |
| Subject: | note 71384 deleted from function.preg-replace by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-127710@lists.php.net to get a copy of this message | ||
Note Submitter: Magikz
----
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?