String interpolation: Difference between revisions

Content deleted Content added
No edit summary
Clean-up, added orphan, uncategorised tags using AWB
Line 1:
{{Orphan|date=February 2011}}
'''String Interpolation''' is a common feature in many programming languages such as [[Python]], [[Ruby]], [[PHP]], [[Perl]] and etc. It means to insert a string or replace a variable with its value.It makes string formatting and specifying contents more intuitive. <ref>http://perlmeme.org/howtos/using_perl/interpolation.html</ref>
 
'''String Interpolation''' is a common feature in many programming languages such as [[Python]], [[Ruby]], [[PHP]], [[Perl]] and etc. It means to insert a string or replace a variable with its value.It makes string formatting and specifying contents more intuitive. <ref>http://perlmeme.org/howtos/using_perl/interpolation.html</ref>
 
== Examples ==
Line 68 ⟶ 70:
query = "SELECT x, y, z FROM Table WHERE id='" + id + "'"
</source>
If ''id'' is replaced with ''"'; DELETE FROM Table WHERE '' = '"'', executing this query will wipe out all the data on the local machine.
 
== See also ==
Line 75 ⟶ 77:
*[[Concatenation]]
*[[String exploits]]
 
 
== Notes ==
{{Reflist}}
 
{{Uncategorized|date=February 2011}}