Most likely, the userdata()
function is returning an object, not a string. Look into the documentation (or var_dump the return value) to find out which value you need to use.
More Related Contents:
- stdClass object and foreach loops
- Count array by parse value of array
- How to make search query like Youtube? [closed]
- how to use json_encode for my output?
- CodeIgniter – foreach loop
- How to use query string in Codeigniter?
- How can I sort arrays and data in PHP?
- Sort array of objects by object fields
- How should I choose an authentication library for CodeIgniter? [closed]
- base_url() function not working in codeigniter
- How to load a controller from another controller in codeigniter?
- Convert/cast an stdClass object to another class
- CodeIgniter: Create new helper?
- CodeIgniter htaccess and URL rewrite issues
- Uploading in Codeigniter – The filetype you are attempting to upload is not allowed
- How to Cast Objects in PHP
- Grouping WHERE clauses in Codeigniter
- How to integrate WordPress template with CodeIgniter
- Namespace in PHP CodeIgniter Framework
- How to convert a string to JSON object in PHP
- CodeIgniter: A Class/Library to help get meta tags from a web page?
- Routing controllers in subfolders using CodeIgniter
- Codeigniter: Best way to structure partial views
- Codeigniter assets folder best practice
- How do I loop through JSON array
- How to iterate through a nested stdClass? [duplicate]
- How to get the object or class name?
- Getting data from post array in CodeIgniter
- $_POST empty on utf-8 characters
- Routes in Codeigniter – Automatically