From: Phil D. <ph...@lo...> - 2013-08-23 02:26:14
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/> <style type="text/css">.mceResizeHandle {position: absolute;border: 1px solid black;background: #FFF;width: 5px;height: 5px;z-index: 10000}.mceResizeHandle:hover {background: #000}img[data-mce-selected] {outline: 1px solid black}img.mceClonedResizable, table.mceClonedResizable {position: absolute;outline: 1px dashed black;opacity: .5;z-index: 10000} </style></head><body style=""> <div> I would use mb_strpos() this returns the position of the string searched for (needle) in the subject string (haystack) (if it exists) - if it doesn't exist in the subject then it returns false. </div> <div>   </div> <div> I am sure everyone has a different view on this sort of thing. </div> <div>   </div> <div> <br/>On 23 August 2013 at 14:09 Ricard Andreu <pak...@gm...> wrote: </div> <div style="position: relative;"> <blockquote style="margin-left: 0px; padding-left: 10px; border-left: solid 1px blue;" type="cite"> <div dir="ltr"> Hi all: <div>   </div> <div> I need to modify the line 261 of PO_PDFPurchOrder.php as sometimes, suppliers_partno is not included in itemdescription (depending on the order of data entry). Sometimes PO gets prepared first and then we realize some data is missing in purchdata. Once we fill it up it does not show on the PO again. </div> <div>   </div> <div> So, I would like to check if suppliers_partno is already included itemdescription strings, to avoid the duplication. I checked the PHP documentation but I've got confused. </div> <div>   </div> <div> Which is the correct PHP function to check if string A is included (a part of) string B? </div> <div>   </div> <div> <br clear="all"/> <div> Regards, <br/>Ricard </div> </div> </div> ------------------------------------------------------------------------------ <br/>Introducing Performance Central, a new site from SourceForge and <br/>AppDynamics. Performance Central is your source for news, insights, <br/>analysis and resources for efficient Application Performance Management. <br/>Visit us today! <br/>http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________ <br/>Web-erp-developers mailing list <br/>Web...@li... <br/>https://lists.sourceforge.net/lists/listinfo/web-erp-developers </blockquote> <br/>  </div> <div id="ox-signature"> Phil <br/> <br/>Ph: +64 (0)275 567890 <br/>Skype: daintree <br/>http://www.logicworks.co.nz </div> </body></html> |