Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7463331
NoEchoSprintfStandard.xml
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
821 B
Referenced Files
None
Subscribers
None
NoEchoSprintfStandard.xml
View Options
<?xml version="1.0"?>
<documentation
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd"
title=
"No Echo Sprintf"
>
<standard>
<![CDATA[
Detects use of `echo [v]sprintf(...);`. Use `[v]printf()` instead.
]]>
</standard>
<code_comparison>
<code
title=
"Valid: using [v]printf() or echo with anything but [v]sprintf()."
>
<![CDATA[
<em>printf</em>('text %s text',
$
var);
<em>echo callMe</em>('text %s text',
$
var);
]]>
</code>
<code
title=
"Invalid: using echo [v]sprintf()."
>
<![CDATA[
<em>echo sprintf</em>('text %s text',
$
var);
<em>echo vsprintf</em>('text %s text', [
$
var]);
]]>
</code>
</code_comparison>
</documentation>
File Metadata
Details
Attached
Mime Type
text/xml
Expires
Mon, Nov 23, 04:03 (3 d, 5 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d8/0d/0f09605352e4334ec7291727c1ad
Default Alt Text
NoEchoSprintfStandard.xml (821 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment