実行結果' ; $html .= '
' ; // 各メソッドを実行する foreach( array( 'Chrome' , 'Safari' , 'Webkit' , 'iOS' ) as $type ) { $html .= '
version(' . $type . ')
' ; $html .= '
' . $detect->version( $type ) . '
' ; } $html .= '
' ; ?> Mobile Detectで、OSやブラウザのバージョンを判定するサンプルデモ

配布元: Syncer