It is generally recommended to explicitly declare the visibility for methods.
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
Loading history...
12
13
14
$fields_string = "";
15
//url-ify the data for the POST
16
if(count($fields)>0) {
17
foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.