Skip to content
Advertisement

PHP-based CSV editor? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed 6 years ago. Improve this question Does anyone know of an online CSV editor written in PHP

removing strange characters from php string

this is what i have right now Drawing an RSS feed into the php, the raw xml from the rss feed reads: The php that i have so far is this. The above returns; If i remove the utf_decode, i get this When i try a str_replace; It doesnt work, i get; Any thoughts? Answer Try this: If this is

OO PHP direct member access [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year. Improve this question I always thought you should never set/get a member variable directly. E.g. I thought you should always use object methods to access

How to detect duplicate values in PHP array?

I am working with a one dimensional array in PHP. I would like to detect the presence of duplicate values, then count the number of duplicate values and out put the results. For example, given the following array: I would like to print: Any advice on how to approach this problem? Thanks. Mike Answer You can use array_count_values function will

Decoding query strings in PHP

Okay, so I’ve written a REST API implementation using mod_rewrite and PHP. I’m accepting a query string via the body of HTTP DELETE requests (… collective groan?). Arguments about the wisdom of …

PHP – Extracting a property from an array of objects

I’ve got an array of cats objects: and I want to extract an array of cats’ IDs in 1 line (not a function nor a loop). I was thinking about using array_walk with create_function but I don’t know how to do it. Any idea? Answer If you have PHP 5.5 or later, the best way is to use the built

How to check if a user account is locked via PHP/LDAP?

We’ve created an intranet site that requires the same password as the user’s network login, so we use LDAP to check the username/password. That’s fine, but if they enter it incorrectly three times it locks their account out, and one or two users have found this confusing. Is there anyway at all I could check, using LDAP/PHP whether or not

PHP recursive search and replace array elements

I want to recursively search and replace elements in an array. The array is tree based so looks like etc. I want to be able to replace certain items with other items, so for example, I want to replace all entries in the array (at whatever depth level) of type A with an array of type B. But here’s the

Advertisement