![]() Problem is when I use nested foreach to loop through the instances of the two objects, despite old_parent having only one instance with a property id of 1, because it loops twice, the array gets two "1" values rather than just one: I want to compare the properties of the instances and if the old_parent's property doesn't exist as one of the $new_parent's property, then I place the old_parent's property in an array called unneeded_ids. We have meetups, code reviews, slack chats, and more.I have two objects that contain object instances. Every week is packed with a roundup of articles on our site and from around the web, where we go deep into developing exceptional web applications. Please take a moment and sign up for our free email course on the fundamentals of good web development. Learn the Fundamentals of Good Web Development
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |