concept kind in category php

appears as: kinds, kind, The kind
PHP in Action: Objects, Design, Agility

This is an excerpt from Manning's book PHP in Action: Objects, Design, Agility.

Object references may be wonderfully intuitive most of the time, but at other times we actively want objects to be copied rather than passed around by reference. This is the case with the kinds of objects known as value objects. If we represent dates, money amounts, and the like as objects, it will be more natural to copy them, because they have no identity.

We’ve also seen three ways to prevent these attacks. The first two—escaping output and filtering input—are general security mechanisms that can prevent several different attacks, including ones that have not been mentioned here. What kind of output escaping to apply depends on the nature of the output medium. How to filter input varies with the kind of data being input. We’ve also seen how to apply a specific remedy for session fixation by regenerating the session identifier.