# Send Function arguments

**URL:** <https://community.postman.com/t/send-function-arguments/27142>\
**Category:** Help Hub\
**Tags:** php\
**Created:** [August 25, 2021, 5:03pm UTC](https://community.postman.com/t/send-function-arguments/27142 "2021-08-25T17:03:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![majortom84](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@majortom84](https://community.postman.com/u/majortom84)\
**Post date:** [August 25, 2021, 5:03pm UTC](https://community.postman.com/t/send-function-arguments/27142/1 "2021-08-25T17:03:24Z")

</div>

_How do we pass args to a function via Postman_:  
I am trying to pass args to this function from postman.But, have had no luck sending the $text.

_Details (like screenshots)_:

public function textValidation($text){  
if (!preg\_match("/^([a-zA-Z]+)$/i",$text)) {  
echo ‘false’;  
}  
else  
echo ‘true’;  
}

I get this error: (try: [http://localhost/Test/textValidation?text=hello](http://localhost/Test/textValidation?text=hello))

  
**Fatal error** : Uncaught ArgumentCountError: Too few arguments to function Test::textValidation(), 0 passed in /srv/app/app/core/App.php on line 131 and exactly 1 expected in /srv/app/app/controllers/Test.php:22 Stack trace: [#0](https://support.postman.com/hc/requests/0) /srv/app/app/core/App.php(131): Test-\>textValidation() [#1](https://support.postman.com/hc/requests/1) /srv/app/public/index.php(106): App-\>\_\_construct(Array, Array) [#2](https://support.postman.com/hc/requests/2) {main} thrown in **/srv/app/app/controllers/Test.php** on line **22**  

_I have tried:_  
to post with prams and body with no luck.
