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> '); Quote 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> '); ?> Quote Link to comment https://forums.phpfreaks.com/topic/55193-simple-php-string-concatenation/#findComment-272850 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.