Jump to content

function with two varibles


brown2005

Recommended Posts

<?php
function Count($type, $topic) {
    // do something
}

 

is invalid, as phpknight pointed out, count() is already a php built-in function.

 

<?php
function thisCount($type, $topic) {
    // do something
}

 

would be perfectly valid. Be aware you are forcing those two arguments to be sent with the request to the function.

 

PhREEEk

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.