How to get user name by array values--wordpress php -


i want username instead of userid

here code

$assignedto = $_post['ticket_id'];  //displays ticket id  $assignee =$wpdb->get_var("select assigned_to {$wpdb->prefix}wpsp_ticket id ='$assignedto' ");//outputs 183,246,239  $exp_array =explode(',', $assignee);//converts array list  var_dump($exp_array);//output { [0]=> string(3) "183" [1]=> string(3) "246" [2]=> string(3) "239" } 

my output should be

183 = amar 246 = akbar 239 = anthony 

expected result=amar,akbar, anthony

can 1 me on this.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -