title: How to call class's method using jquery Ajax call
body: <p>i am newbie in Jquery and Ajax.. Please bear with my stupid problem..</p>
  
  <p>i am trying to call method say test() inside class <strong>hello</strong> through ajax call..</p>
  
  <p><strong>hello.php</strong></p>
  
  <pre><code>class hello
  {
        public function test()
        {
          //some data
        }
  
        public function abc()
        {
          //some data
        }
  }
  </code></pre>
  
  <p>now i want to call <strong>test()</strong> from another php file...</p>
  
  <p>for example:</p>
  
  <p><strong>b.php</strong></p>
  
  <pre><code>  $.ajax({
      url : 'hello.php-&gt;test()', //just for example i have written it bcz it should call only test() not abc()..
     })
  </code></pre>
  
  <p>is it possible to call it directly? i have went through $.ajax() api but i din't found anything helpful.. </p>
  
  <p>All answer will be appreciates... </p>