如何在按钮之间添加新行?PHP
我使用了如何在按钮之间添加新行?PHP,php,newline,Php,Newline,我使用了\n和PHP\u EOL,但没有任何效果。新行应位于“编辑”按钮和新元素之间。 我应该使用HTML吗?将此语句用于新行: $form->addElement( new Element\Button (" Edit " , "button " )); $form->addElement(new Element\Button); $form->addElement(new Element\Button ( "Cancel " , "button")); echo'';
\n
和PHP\u EOL
,但没有任何效果。新行应位于“编辑”按钮和新元素之间。
我应该使用HTML吗?将此语句用于新行:
$form->addElement( new Element\Button (" Edit " , "button " ));
$form->addElement(new Element\Button);
$form->addElement(new Element\Button ( "Cancel " , "button"));
echo'
';
将此语句用于新行:
$form->addElement( new Element\Button (" Edit " , "button " ));
$form->addElement(new Element\Button);
$form->addElement(new Element\Button ( "Cancel " , "button"));
echo'
';
在php风格的按钮之间使用 echo '<br/>';
$form->addElement(新元素\按钮(“编辑”、“按钮”);
回声“
”;
$form->addElement(新元素\按钮);
回声“
”;
$form->addElement(新元素\按钮(“取消”、“按钮”);
在php风格的按钮之间使用 echo '<br/>';
$form->addElement(新元素\按钮(“编辑”、“按钮”);
回声“
”;
$form->addElement(新元素\按钮);
回声“
”;
$form->addElement(新元素\按钮(“取消”、“按钮”);
是使用HTML
?\n和php\u eol将在源代码中生成返回,而不是HTML返回。使用是使用HTML
?\n和php\u eol将在源代码中生成返回,而不是HTML返回。使用