Whenenever I'm discussing PHP with colleagues I don't know how to describe the little arrow symbol '->' used for accessing properties and methods in PHP. Does it have a name? Is it called arrow?
The arrow operator is formed by using a minus sign, followed by the greater than symbol as shown below.
It's called the object operator (T_OBJECT_OPERATOR).
Find duplicate values in one column First, use the GROUP BY clause to group all rows by the target column, which is the column that you want to check duplicate. Then, use the COUNT() function in the HAVING clause to check if any group have more than 1 element. These groups are duplicate.
Following is the query to count duplicate records with first_name and last_name in a table. mysql> SELECT COUNT(*) as repetitions, last_name, first_name -> FROM person_tbl -> GROUP BY last_name, first_name -> HAVING repetitions > 1; This query will return a list of all the duplicate records in the person_tbl table.
I mostly call it object access operator.
EDIT: Actually, come to think of it; I usually pronounce it as "dot", since most of us here are more familiar with the dot-notation for accessing objects properties. Since it's clearly not a dot, that's probably not the answer you were looking for.
Chaining operator, read here: http://en.wikipedia.org/wiki/Method_chaining
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With