Jump to content

Quick Question


superhoops

Recommended Posts

Here is the code for my test page:

[code]<?php
$week = "3";
echo 'There are currently 10-$week weeks left before it is built.';
?>[/code]

But it displays this [b]There is currently 10-$week weeks left before it is built[/b]

Im a newbie and ive been p;layiong around with it but what i want to do it get it to work out 10 minus 3 ($week). What code do i need to do that?
Link to comment
https://forums.phpfreaks.com/topic/19116-quick-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.