Jump to content

phpaddiction

New Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by phpaddiction

  1. Sorry a syntax problem on my first post echo ( f1($x) > ($f2_y = f2($y))) ? $f2_y ."\n" : ""; This is correct
  2. You could do it this way: echo ( f1($x) > ($f2_y = f2($y)) ? $f2_y ."\n" : ""; That should work. I put the $f2_y inside brackets to have that executed first and assign f2($x) to $f2_y, then it should run the comparison and echo on true.
×
×
  • 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.