Undefined error notice

From: Date: Thu, 18 Feb 2016 15:23:22 +0000
Subject: Undefined error notice
References: 1 2  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-24568@lists.php.net to get a copy of this message
Please help me The php script is below <?php function rand_string( $length ) { $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $size = strlen( $chars ); for( $i = 0; $i < $length; $i++ ) { $str .= $chars[ rand( 0, $size - 1 ) ]; } return $str; } $tablename=rand_string( 8 ); ?> And the error attached as image

Attachment: [image/png] Capturem.PNG
« previous php.webmaster (#24568) next »