# Returning variables from Functions

**URL:** <https://forum.kirupa.com/t/returning-variables-from-functions/268223>\
**Category:** programming\
**Created:** [August 11, 2008, 3:31pm UTC](https://forum.kirupa.com/t/returning-variables-from-functions/268223 "2008-08-11T15:31:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iNeed\_Help](https://avatars.discourse-cdn.com/v4/letter/i/49beb7/32.png) [@iNeed\_Help](https://forum.kirupa.com/u/iNeed_Help)\
**Post date:** [August 11, 2008, 3:31pm UTC](https://forum.kirupa.com/t/returning-variables-from-functions/268223/1 "2008-08-11T15:31:10Z")

</div>

Can somebody please tell me why this function is not RETURNing the variable?

```php

<?php
    // Create function
    function show_text() {
        $text = "iNeed Help";
        return $text;
    }
    
    
    // Execute function
    show_text();
    
    // ECHO the value returned from the function
    echo $text;
?>

```

Thanks
