开发者

Adding line break within function string

I am pretty new to PHP. How do you add a line break to the bit of fedex string in the following function?

tep_draw_textarea_field('comments', 'soft', '60', '5', 'Shipped via Fedex www.fedex.ca Tracking number:');

Here is how the functi开发者_开发技巧on is defined:

function tep_draw_form($name, $action, $parameters = '', $method = 'post', $params = '')


use double quotes and a "\n":

tep_draw_textarea_field('comments', 'soft', '60', '5', 
     "Shipped via Fedex www.fedex.ca Tracking number:\n");


A line break is represented by "\n";

The following code will insert a line break (note the double quotes):

tep_draw_textarea_field('comments', 'soft', '60', '5', "Shipped via Fedex www.fedex.ca\n Tracking number:");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜