Jump to content

How to transfer data from a variable to an another variable?


Recommended Posts

Hi,

The following code is apart of my image upload process code:

$crop->new_name = $this->RandomStringGenerator() . "." . $crop->ext;

$this->new_name2 = $crop->new_name;

The problem is that the value in new_name2 variable is not same as variable new_name. How can I fix this issue?

We need the full code of the method where you are trying to do this.  The use of a local $crop variable is odd.  With that said, inside a method, that line should work fine, so there is something else missing in your question.  You say they are "not the same."  Where is it that you find this to be the case?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.