Page 1 of 1

php array

Posted: Thu Oct 07, 2010 12:39 am
by Delphine
Hii all..

plz help me in solving my problem..

here's my piece of code

Code: Select all

$dispImg1 = $message -> embed(Swift_Image::fromPath("images/header.jpg"));
$dispImg2 = $message -> embed(Swift_Image::fromPath("images/top.jpg"));
$dispImg3 = $message -> embed(Swift_Image::fromPath("images/resultat.jpg"));
$dispImg4 = $message -> embed(Swift_Image::fromPath("images/leftResult.jpg"));
$dispImg5 = $message -> embed(Swift_Image::fromPath("images/rightResult.jpg"));
$dispImg6 = $message -> embed(Swift_Image::fromPath("images/bottom.jpg"));
$dispImg7 = $message -> embed(Swift_Image::fromPath("images/leftFooter.jpg"));
$dispImg8 = $message -> embed(Swift_Image::fromPath("images/rightFooter.jpg"));
$dispImg9 = $message -> embed(Swift_Image::fromPath("images/middle.jpg"));
$dispImg10 = $message -> embed(Swift_Image::fromPath("images/spacer.gif"));
I need to convert this into an array.. Can anyone help me with this?
Any help will be greatly appreciated.. Thank you in advance

Regards
Delphine

Re: php array

Posted: Thu Oct 07, 2010 12:54 am
by requinix
Convert what into an array? Have you tried to do it yourself? What have you come up with?

Re: php array

Posted: Thu Oct 07, 2010 1:14 am
by pkphp
A framework? I really want to help you , but sorry, i even think that is not PHP code lol

Re: php array

Posted: Thu Oct 07, 2010 1:19 am
by John Cartwright
pkphp wrote:A framework? I really want to help you , but sorry, i even think that is not PHP code lol
Huh? It is PHP code. In fact, it is the Swift Mailer library.