For example, can I do:
if ($my_array = wp_get_category($id)) { echo \"asdf\"; } else { echo \"1234\"; }
If nothing is returned by t
you might want something like this:
if (!is_null($my_array = wp_get_category($id)) { echo "asdf"; else echo "1234";
Assuming the function returns null upon failure. You may have to adjust it a bit.