- Where Developers Learn, Share, & Build Careers


I am currently replacing an empty space with underscores during an image upload. How can I include it so that this change is done & amp; "And".

  $ newname = str_replace ('', '_', trim (strip_tags ($ _POST ['name']))). _ $ FormKey- & gt; Generation () '_' post (). '.jpg';   

It is stuck with one and does not even know what to try.

$ newname = str_replace (array ('', '& amp;'), array ('_', 'and'), ...);

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -