Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to combine variables and text into a string php

<?php
$number = 8;
$txt = "the number is".$number.", ok?"; //Use a dot to combine
echo $txt;
?>
 
PREVIOUS NEXT
Tagged: #combine #variables #text #string #php
ADD COMMENT
Topic
Name
2+4 =