Skip to content

Instantly share code, notes, and snippets.

@maykonmeier
Created August 3, 2014 20:04
Show Gist options
  • Save maykonmeier/060744337d155559a149 to your computer and use it in GitHub Desktop.
Save maykonmeier/060744337d155559a149 to your computer and use it in GitHub Desktop.
Operadores de String
<?php
$welcome = "Bem vindo, ";
$name = "Maykon";
// Concatenação
echo $welcome . $name;
$phrase = $welcome;
// Atribuição e concatenação
$phrase .= $name;
echo $phrase;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment