4

Is there a function in javascript that is equivalent to strchr of php? Please help me. thank you.

2
  • Best reference for JS equivalent functions is phpjs.org Commented Aug 27, 2014 at 9:53
  • can it return a value of string? Commented Aug 27, 2014 at 9:55

1 Answer 1

2

You should try the indexOf method.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.