Tuesday, 3 April 2018

Php Keys (Lecture -8)


hey guys what's going on is clever taking and then this lecture we're going to
we Interpol nation what is inter palatial well it's a way to accessories
and they methods and properties inside double quilt so I broke them down in
for categories first as a preferred way then there are valid alternatives then
there's the only way and finally, there we're are only in valid ways to
access properties etc so let's go over the preferred method first so if you
haven't made with a single so she ate off a key and there are no spaces in that
the associated key you must think to close the whole thing in early brackets now
next, if you have just in numeric or a with a new very key then you don't
need any early back it's for that and that only applied to a single a single
dimensionally erase now this is a really cool one here you have an object
and he too acts as a property name you don't need any curly back and this is
the one that I'd just found out about as I was making this Lecture I thought
that you had two enclosed those literally dragons before and as it turns out
you don't have to so this is just I'm the really clean way of vaccine property
themes of your objects so next there's a valid alternative so this one i
also didn't know about so if you have associative things so dimensionally
china the associative clean name you actually don't have to inclose it in
the quotes in the single calls in this case and php man you know all that's
what they say you don't have to in close that in any quotes however you can
get a little messy later on if you try to print the south outside of double
codes(Dallas Website Development) it's not me we're also if you have a space in your associated key
that's also not going to work out so I still prefer the preferred method off
ink using the associate a key inside the early brackets inside the double
codes when you haven't single associative or a key so if you have a new
meraki you can also in close it in Kuril brackets but these early brackets
optional so I prefer this way here and also undervalued alternatives we have
our property names you can also egos him and early Braque is but they're
also optional as I've just found out so the third is the only way you can
the access he can access the properties and in this case, we're trying to
access object method and you can now access object method if seeing close it
in curly brackets however, that's not true for regular functions as you can
see down here I've at contaminated the function with the dogs with the
contaminate operators so when it comes to object methods you can in clothes
that and currently brackets but we need it when it comes to functions you
must compact undated and looked up we got an associated a single dimensional


with space which you must in closing currency brackets and for any
multidimensional erase just remember that we have to enclose all multi-touch
secondly inherently brackets whether there are numeric or associative so
[UM] names you must can cattle eight and cars and you've also most can
captain eight Constance you can just put them inside the box with currently
brackets or in any other way so invalid methods here you can see he said me
live printed the a with an associate keep the devil course which is
not going to work you're going to get an error he up next as a constant
enclosed in the current brackets which are not going to work as well next
as a function (Dalllas Website Development)name and clothes and thirdly brackets which is also I'm going
to work because you can see the text high lotteries interpret the values
as just strings next that we got an object property which is enclosed in
a single curly bracket that's invalid next we have a method called which is
not in clothes and early brackets, that's not going to as opposed to math
properties next so we got a multidimensional or a which is not a clothes
and cold brackets lesson are going to work and the next we got which is we
got which is a multidimensional rate there has a three key followed by then
niemira key which is a closed incurably brackets now that that is a tricky
one because you can use a single dimensionally without enclosed and the the
in single calls but one

No comments:

Post a Comment