Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Noncify
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Markshall" data-source="post: 441413" data-attributes="member: 1872"><p>No, it’s self-assigning a variable whilst concatenating it to the string simultaneously.</p><p></p><p>It prints it to the string at the same time as assigning it as a variable so I can use it later on. What you’re thinking of is this:</p><p></p><p>[PHP]'.' . ($salt==self::randString($timeout)) . '.' .[/PHP]</p><p>The extra = symbol. Which would echo out false in this case, since $salt is previously undefined so would have no value and would therefore not match the value of self::randString($timeout)</p></blockquote><p></p>
[QUOTE="Markshall, post: 441413, member: 1872"] No, it’s self-assigning a variable whilst concatenating it to the string simultaneously. It prints it to the string at the same time as assigning it as a variable so I can use it later on. What you’re thinking of is this: [PHP]'.' . ($salt==self::randString($timeout)) . '.' .[/PHP] The extra = symbol. Which would echo out false in this case, since $salt is previously undefined so would have no value and would therefore not match the value of self::randString($timeout) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Noncify
Top