Mapper99 0 Light Poster

I can't seem to get a case insensitive search to work using an XPATH query.

This code works:

$lats = $users->xpath("/users/user[contains(.,'$fullname')]/lat");

This code does not work:

$lats = $users->xpath("/users/user[contains(translate(.,'abcdefghijklmnopqrstuvwxyz'," + " 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'),'$fullname')]/lat");

Any ideas?

Thanks in advance,

Mapper

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.