use a variable as an argument
-
So I’m using
get_user
to obtain some information.the function reference give the following example:
get_users('blog_id=1&orderby=nicename&role=subscriber');
I would like to replace
blog_id=1
withblog_id=$myvar
however it doesn’t see to be working? Does any one know the proper method to pass a variable as an argument or know if it even possible?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘use a variable as an argument’ is closed to new replies.