set_tags()

Select from existing tags or create a new tag. Tags are the simplest form of data where the id is also the text. Take an array representing a list of tags. User can select from existing tags or create a new tag by picking the first choice which is what the user has typed into the search box.

Note that when tagging is enabled the user can select from pre-existing tags or create a new tag by picking the first choice which is what the user has typed into the search box so far.

Signature:

public function set_tags(array $tags, array $tokenSeparators)

Parameters:

  • $tags: Array
  • $tokenSeparators: An array of strings that define token separators.

No related content found.

Tags:

PHP Autocomplete
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.