Re: [PHP]Transform a block of code in PHP

2007-02-23 Thread Richard Lynch
On Fri, February 23, 2007 6:12 am, Helder Lopes wrote: > how to transform a block of code in html to php?? > for example this, I'm not sure I understand the question... Look for the parts that repeat, and re-factor them as a loop through some kind of data storage such as a database? Or perhaps y

Re: [PHP]Transform a block of code in PHP

2007-02-23 Thread Dave Goodchild
I assume you mean you want to hold that html in a variable? Use a heredoc.

Re: [PHP]Transform a block of code in PHP

2007-02-23 Thread Stut
Helder Lopes wrote: how to transform a block of code in html to php?? HTML to PHP? You having a laugh? What are you actually trying to achieve? -Stut for example this, P.M.R. Leiria - Produtos para Mec. e Racionalização Informática, Lda. Av. Dr. Francisco S

[PHP]Transform a block of code in PHP

2007-02-23 Thread Helder Lopes
how to transform a block of code in html to php?? for example this, P.M.R. Leiria - Produtos para Mec. e Racionalização Informática, Lda. Av. Dr. Francisco Sá Carneiro nº 1448 2415-376 Leiria Telefones: 244850010 Fax: 244850019