开发者

Adding line break within function string

开发者 https://www.devze.com 2023-03-31 19:13 出处:网络
I am pretty new to PHP.How do you add a line break to the bit of fedex string in the following function?

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

精彩评论

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