Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php sprintf抛出字符串中带有%的警告_Php_Printf - Fatal编程技术网

Php sprintf抛出字符串中带有%的警告

Php sprintf抛出字符串中带有%的警告,php,printf,Php,Printf,我在一些包含表的html上使用sprintf: <table width="100%".... 您需要用另一个%来转义它: <table width="100%%".... 如果我这么做了,我的结局是:好吧,那是PEBKAC。我在里面跑了两次。 <table width="100 border="0"... <table width="100%%"....

我在一些包含表的html上使用sprintf:

<table width="100%"....

您需要用另一个
%
来转义它:

<table width="100%%"....

如果我这么做了,我的结局是:好吧,那是PEBKAC。我在里面跑了两次。
<table width="100 border="0"...
<table width="100%%"....