title: Converting two integers into a long in PHP
body: <p>I've got two integers and I need to convert them into a long. I'm totally lost on how to do this. The two integers that I need to convert are: </p>
  
  <pre><code>INT 1: 60850985 
  INT 2: 59150141
  </code></pre>
  
  <p>I need a method that converts two integers into a long. If you can post one, that'd be great.</p>
  
  <p>When I say converting to a long, I'm wondering how you would do the equivalent of (long) from java in PHP</p>
  
  <hr>
  
  <p>Let me be completely clear here: 
  I'm receiving two ints from the client, then I need to convert them to a long, then the single long is to be used again as a single int.</p>
  
  <p>In essence, I need to take two ints and convert them into a single int. An example of how this is done in java would be:  </p>
  
  <pre><code>  long $intA = (long) readInt();
    long $intB = (long) readInt();
    return ($intA &lt;&lt; 32) + $intB;
  </code></pre>