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