samsbc12 Posted June 12, 2007 Share Posted June 12, 2007 define('TEXT_MAIN', '<style type="text/css"> <!-- .style4 {font-size: small} --><br> <!-- p { text-indent: 2.0em; } --> </style> <div align="left"> <p> <img src="/images/mainpage.jpg" hspace="15" align="left">' . str_replace("\r\n", "<br>", stripslashes($row['Text'])) //i WANT TO INSERT THIS FUCTION HERE THEN CONTINUE THE STRING </div> </html> '); Link to comment https://forums.phpfreaks.com/topic/55193-simple-php-string-concatenation/ Share on other sites More sharing options...
trq Posted June 12, 2007 Share Posted June 12, 2007 Im not sure it would even work within a constant declaration, but... <?php define('TEXT_MAIN', '<style type="text/css"> <!-- .style4 {font-size: small} --> <!-- p { text-indent: 2.0em; } --> </style> <div align="left"> <p> <img src="/images/mainpage.jpg" hspace="15" align="left">' . str_replace("\r\n", "", stripslashes($row['Text'])) . ' </div> </html> '); ?> Link to comment https://forums.phpfreaks.com/topic/55193-simple-php-string-concatenation/#findComment-272850 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.