php cast array to string code example Example: Array to String Conversion in PHP $gadget = array( 'computer', 'mobile', 'tablet' ); echo implode($arr);