Tenías razón. Solo tenía que asegurarme de pasar la referencia, en este caso (&$b) y luego, abajo, llamar la variable $a en la función para que se modifique.
Era muy simple pero me hice un lío sin darme cuenta jajaja
Muchas gracias.
Report
There was a problem reporting this post.
Block Member?
Please confirm you want to block this member.
You will no longer be able to:
See blocked member's posts
Mention this member in posts
Invite this member to groups
Message this member
Add this member as a connection
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.