Thursday, October 16, 2008

Manipulation String

Operation and manipulation string is a hot topic for programmer. But in fact, manipulation and operation coverage string very wide and do not seldom base on problem domain which faced. Although that if you have experience about fundamental base, we will found solution of the problem. One correct way to starts operation string is comprehended anatomy and also the characteristic first. String Literal String can be specified by three approach
  • single quotation mark
  • double quotation mark
  • syntax here document (heredoc)
$strl = ‘America’; echo ‘Halo $strl’; echo “Halo $strl”; $str2 = << Sintaks heredoc EOQ; Echo $str2;
Double quotation mark and heredoc make result variable interpolation so that both approach tend to farther out compared by single quotation mark.


Post a Comment