Welcome! Log In Create A New Profile

Advanced

PHP Two - Working with variables

Posted by Gaia77490614 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
PHP Two - Working with variables
February 15, 2012 04:01PM
I have completed this section.
avatar Re: PHP Two - Working with variables
February 15, 2012 11:44PM
I have completed this section. I hope this link http://php.net/manual/en/language.operators.precedence.php will be helpful to those having issues understanding Operator Precedence.Cheers!
Re: PHP Two - Working with variables
February 16, 2012 08:38AM
77553055 Wrote:
-------------------------------------------------------
> I have completed this section. I hope this link
> http://php.net/manual/en/language.operators.preced
> ence.php will be helpful to those having issues
> understanding Operator Precedence.Cheers!


Yes the php.net website is a great resource for anything php
avatar Re: PHP Two - Working with variables
February 16, 2012 09:42AM
Quote
Yes the php.net website is a great resource for anything php
thumbs up
Re: PHP Two - Working with variables
February 18, 2012 11:24AM
I have completed this section. I found that working with variables in php is very similar to working with variables in algebrae! Instead of x's and y's you are using $variable smiling smiley So I found this section very easy to grasp.
Re: PHP Two - Working with variables
February 19, 2012 02:36AM
Hi,

I'm at the end of PHP two, floating point variations.
I've gotten myself quite confused with the print statements, it says that there shouldn't be numbers, just variable names, is there a way that I'm supposed to type out the statement so that you get your answer in words, or that you provide the answer in the equation?

Regards
Re: PHP Two - Working with variables
February 19, 2012 04:42PM
HI, i realized that i was overthinking the PHP,
therefore I have finally completed this section.
Regards
Re: PHP Two - Working with variables
February 20, 2012 02:32PM
I also completed this section but im just worried because it looks like am far behind.
Re: PHP Two - Working with variables
February 20, 2012 04:31PM
I have completed this section. The concatenation of strings is very interesting when compared to other languages (Java, C#, ActionScript etc.) because they are joined by a period (.) where other languages use the plus (+) to join strings. In this tutorial they recommend the use of single quotations for direct text. This can become a problem when building query strings for mysql, because some surnames contain the single quote character ('winking smiley such as O'Brien or O'Neill... Something to keep in mind when allowing the user to specify a search criteria for a query.
Re: PHP Two - Working with variables
February 20, 2012 07:35PM
I think i am super behind, but this is my 1st time working with php or code like it
i find it interesting the way you can store variables and call them back
and the process is quickly starting to make sense for me.
my own personal calculator at the moment
Re: PHP Two - Working with variables
February 21, 2012 08:13AM
Fulu-72924640 Wrote:
-------------------------------------------------------
> I also completed this section but im just worried
> because it looks like am far behind.

Don't worry man, it is not a race, you should just complete the course in your own time.
It seems there are a few people on here that are trying to finish it before anyone else.

Rather take it slow and make sure you understand everything than rushing through it and by August you can't remember anything anymore.
Re: PHP Two - Working with variables
February 21, 2012 10:30AM
How are about this guys, what the output?

$name = "innocent";
$$name = "sizwe";
echo $innocent;

Awesome
Re: PHP Two - Working with variables
February 21, 2012 10:50AM
>Don't worry man, it is not a race, you should just complete the course in your own time.
>It seems there are a few people on here that are trying to finish it before anyone else.

>Rather take it slow and make sure you understand everything than rushing through it and by August you can't remember anything anymore.

I think the above advice is extremely good to keep in mind.

Making sure you understand and know how everything works is how you are going to be able to work with PHP at all.

You will continually need to use variables.

Also it helps to focus on the = and $ first just in order to identify all the variables in the first place - for me at least.

The ( . ) fullstop, period is also the one I had to focus on more because of its use and meanings outside of PHP.
avatar
Mac
Re: PHP Two - Working with variables
February 21, 2012 11:39AM
77592972_innocent Wrote:
-------------------------------------------------------
> How are about this guys, what the output?
>
> $name = "innocent";
> $$name = "sizwe";
> echo $innocent;
>
> Awesome

Last chance. You post code without reading this post http://osprey.unisa.ac.za/phorum/read.php?570,162261 then I am starting to delete!
Re: PHP Two - Working with variables
February 21, 2012 01:27PM
Variables are awesome its like maths where you working with X,s and Y,s.this part of Variables easy to understand and easy to work with it.
Re: PHP Two - Working with variables
February 23, 2012 08:40PM
I've completed this section.
avatar Re: PHP Two - Working with variables
February 25, 2012 03:58PM
Completed.
Re: PHP Two - Working with variables
February 25, 2012 04:05PM
I have complete this section and I learned alot
Re: PHP Two - Working with variables
February 26, 2012 04:51PM
Completed,

Really awesome PHP seems to handle variables the same way JavaScript does.
However I know we are going to get onto far more complicated and powerful handling of variables later!
Re: PHP Two - Working with variables
February 27, 2012 10:48AM
Am so behind..confused smiley...Just finished this section.
Re: PHP Two - Working with variables
February 27, 2012 11:24PM
Language: PHP
I have completed this section.
Re: PHP Two - Working with variables
March 03, 2012 12:03PM
owned this section
avatar Re: PHP Two - Working with variables
March 04, 2012 12:02PM
Language: PHP
Section Done!
Re: PHP Two - Working with variables
March 05, 2012 10:51AM
Section done - started late due to other committments - but catching up fast! Easy so far.
Re: PHP Two - Working with variables
March 05, 2012 08:36PM
Completed chapter 2, finish and klaar
Re: PHP Two - Working with variables
March 07, 2012 10:27AM
Just curious

When you create a variable in php, what happens to memory?
Is that variable serves as a pointer to wherever it is?
When you change variable value, do you change the actual value or copy?
Re: PHP Two - Working with variables
March 10, 2012 10:46AM
I have completed this section.
Re: PHP Two - Working with variables
March 11, 2012 12:24PM
had a late start. Hope to catch up now
Re: PHP Two - Working with variables
March 11, 2012 05:17PM
Completed !
Re: PHP Two - Working with variables
March 12, 2012 01:00PM
Complete!spinning smiley sticking its tongue out
Sorry, you do not have permission to post/reply in this forum.