TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   getting contents between tags and... (http://www.talkphp.com/general/2187-getting-contents-between-tags.html)

Sam Granger 02-04-2008 06:33 PM

getting contents between tags and...
 
Hey!

I have a pdf class, and I can use it to output images. I want to get info from the database. The content looks like this:
Quote:

text text text, more text [image]hello.jpg[/image] haha hello [thumb]hi.gif[/thumb]. haha more text
Anyway, you get the point :).

How do I get the contents out of the tag and put them into images? I think array? or?

I need to use a seperate code for text and images to generate the pdf. :)

For text:
$pdf->ezText("$title", 22);

And for images:
$pdf->ezImage('http://www.domain.com/logo.jpg', '0', '150', 'none', 'left');

for each image.

Help! :(

Do I use preg_match?

Sam Granger 02-05-2008 05:37 PM

Problem solved! :-)


All times are GMT. The time now is 04:44 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0