Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    1,459

    Re: Copying arrays from one class to another

    Do you know how to access a variable in one class from another class? An array is just another type of variable.


    There are several ways:
    use a loop to copy element by element
    use the clone()...
  2. Replies
    3
    Views
    1,459

    Re: Copying arrays from one class to another

    Yes. What you need to consider is if you want a copy of the contents of the array or if you just need a reference to the one array to be able to access that array from another class.
Results 1 to 2 of 2