(함수) shuffle() & str_shuffle() - 랜덤함수
랜덤1 : shuffle() function random_password_1($cnt) { $word_en = "a,b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z"; $word_no = "1,2,3,4,5,6,7,8,9,0"; $word = $word_en.",".$word_no; $array=explode(",",$word); shuffle($array); $newstring = implode($array,""); return substr($newstring, 0, $cnt); } echo random_password_1('5'); 랜덤2 : str_shuffle() function random_password_2($cnt) { $word = 'abcefghijk..
(함수) getimagesize()
getimagesize() $size_info = getimagesize($image_file); $size_info[0] : image width $size_info[1] : image height $size_info[2] : image format (ex, 1:GIF, 2:JPG, 3:PNG, 4:SWF, 5:PDF, 6:BMP, 7:TIFF(intel byte order), 8:TIFF(motolola byte order), 9:JPC, 10:JP2, 11:JPX) $size_info[3] : image size string (ex, height="200" width="300") 샘플테스트 $image_file = "test_001.jpg"; // width='180' height='171' $si..