How can I access an array/object?

To access an array or object you how to use two different operators. Arrays To access array elements you have to use []. echo $array[0]; On older PHP versions, an alternative syntax using {} was also allowed: echo $array{0}; Difference between declaring an array and accessing an array element Defining an array and accessing an … Read more

What’s the difference between the atomic and nonatomic attributes?

The last two are identical; “atomic” is the default behavior (note that it is not actually a keyword; it is specified only by the absence of nonatomic — atomic was added as a keyword in recent versions of llvm/clang). Assuming that you are @synthesizing the method implementations, atomic vs. non-atomic changes the generated code. If … Read more