In php, how to write verification code if the function has many parameters, each of which is non-empty?

such as the following function,

public function myfunc ($title,$desc,$cecList,$email,$cype,$userId,$userName);

verify every parameter! empty,

what else can you do if you don"t write a bunch of if?

Mar.13,2021

  

Visual array storage is possible, and then iterate through the loop to determine

Menu