What is "(string)" in php statement?

Can someone please explain / refer me to the php documentation regarding the meaning/use of "(string)" in the following:

		// Do not serialize the $hooks because they might contain non-serializeable objects
		$key = (string) $dsn_or_conn . serialize($config) . $log_level;

Open in new window

SAbboushiAsked:
Who is Participating?
 
Kyle AbrahamsConnect With a Mentor Senior .Net DeveloperCommented:
It's a cast (conversion) to make the $dsn_or_conn . serialize($config) . $log_level a string.
0
 
Michael FowlerConnect With a Mentor Solutions ConsultantCommented:
For more detail have a look at Type Casting in this link
http://php.net/manual/en/language.types.type-juggling.php
0
 
SAbboushiAuthor Commented:
Thanks guys!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.