sooo.... does anyone know how to put a - or dash in between text and numbers in php.. i tired loading the - into a variable but it keeps subtracting my numbers.. i want to add variables using the following
$_SESSION['s1'] = $_POST['s1'] ;
$_SESSION['ca'] = $_SESSION['ca'] - 1;
$_SESSION['pt'] = $_SESSION['pt'] . $_SESSION['dash'];
$_SESSION['pt'] = $_SESSION['pt'] . $_SESSION['s1'] ;
as you see hte session dash is not getting added as text but as a subtractors due to the following output
kmc-4--5
how can i add the - as text and append it to a variable???
$_SESSION['s1'] = $_POST['s1'] ;
$_SESSION['ca'] = $_SESSION['ca'] - 1;
$_SESSION['pt'] = $_SESSION['pt'] . $_SESSION['dash'];
$_SESSION['pt'] = $_SESSION['pt'] . $_SESSION['s1'] ;
as you see hte session dash is not getting added as text but as a subtractors due to the following output
kmc-4--5
how can i add the - as text and append it to a variable???