Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement in_array function #1

Closed
Avcajaraville opened this issue Jun 22, 2016 · 0 comments
Closed

Implement in_array function #1

Avcajaraville opened this issue Jun 22, 2016 · 0 comments

Comments

@Avcajaraville
Copy link
Owner

Avcajaraville commented Jun 22, 2016

Implement in_array function for smarty with the following signature:

 in_array( 'needle', $haystack )

Should return boolen true or false.

Usage on a template:

{if in_array needle='needle_string' haystack=$an_array} 
   Do something about it
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant