It returns the maximum length of a field in a recordset
Example
<?php
mysql_connect(“localhost”, “root”, “phpcode”) or die(mysql_error());
mysql_select_db(“database_name”);
echo “<pre>”;
echo mysql_field_len(mysql_query(“SELECT * FROM users”),1);
?>
Output
255